Jump to content
  • Advertisement
Sign in to follow this  
supagu

[linux] eclipse include directroy using environment variable

This topic is 4159 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im trying to port my code to linux, from vc2005. in vc2005 i have an environment variable to locate my base folder for my code libraries. Im trying to set this up for eclipse. say i have the folder /home/user/workspace which has in it: /home/user/workspace/memory/memory.h /home/user/workspace/file/file.cpp now when i go to compile file.cpp it has: #include "memory/memory.h" so my environment variable is: PROGRAMMING=/home/user/workspace so in eclipse under the g++ directories tab i have put: $PROGRAMMING but it still fails to find the file. ideas?

Share this post


Link to post
Share on other sites
Advertisement
You can/have to tell eclipse to use your environment variable. Go to Project->Properties and navigate to the "Environment" tab under the "C/C++ Build" settings. There choose "New" and select your environment variable from the drop down list.
That should do it...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!