Environment Variable

The place to post if you need help or advice

Moderators: ChriThor, LXF moderators

Environment Variable

Postby alansecker » Tue Jul 12, 2005 10:13 pm

I'm trying to compile a test program with xHarbour. It responds by not being able to find an 'include' file. I have tried defining a variable from bash but that doesn't work. eg.

I tried :


but that wouldn't show up when I entered 'set'. I tried defining the include path in an sh file: harb.sh and symlinking that from /etc/profile.d on advice from an FC user. The thing is my system is Mandriva LE2005 based.
Can anyone help?
Posts: 24
Joined: Wed Apr 20, 2005 8:40 pm

RE: Environment Variable

Postby Nigel » Tue Jul 12, 2005 10:57 pm

try the following command :

export INCLUDE=/sec/ixHarbour/include

you can put this into your ~/.bashrc file if you want it set every time you start a new shell.

Alternatively, if xHarbour uses gcc, you could edit the gcc command in the makefile to have an include directory parameter, something like

gcc -I/sec/ixHarbour/include -o fred fred.c
Hope this helps,

LXF regular
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

Return to Help!

Who is online

Users browsing this forum: No registered users and 4 guests