Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Environment Variable

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
alansecker



Joined: Wed Apr 20, 2005 9:40 pm
Posts: 21

PostPosted: Tue Jul 12, 2005 11:13 pm    Post subject: Environment Variable Reply with quote

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.

include=/sec/ixHarbour/include
I tried :

INCLUDE=/sec/ixHarbour/include

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?
Back to top
View user's profile Send private message
Nigel
LXF regular


Joined: Fri Apr 08, 2005 9:03 pm
Posts: 1141
Location: Gloucestershire, UK

PostPosted: Tue Jul 12, 2005 11:57 pm    Post subject: RE: Environment Variable Reply with quote

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,

Nigel.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast