Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
why is include not working? - beginner question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jason, post: 3960370"] Thank you. I know this seems just too simple. Problem is, I've been searching for some time and still have not found documentation on doing something like -I${environment_variable}/include in the command line. Would you mind pointing me to this documentation? And how does this statement fit? I tried putting the #include statement in the source file like you said (#include "SQLAPI.h" ) and using the -I option in the command line: jrl:~$ g++ my_source_file.cpp -I${SQLAPI}/include also tried: jrl:~$ g++ -I${SQLAPI}/include my_source_file.cpp Still, I get: my_source_file.cpp:2:44: error: SQLAPI.h: No such file or directory I wish this did not seem like such a lame question, but I just can't find the answer - not sure where to look in beginner books online. Thank you! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
why is include not working? - beginner question
Top