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: 3960346"] I am a beginner with c++. I'm running g++ from the command line in Ubuntu. I found everything working fine except that when I try to include a *.h file, I can't get it to work. I downloaded SQLAPI and am trying to include the SQLAPI.h file at the beginning of a file called "my_file.cpp". The path to the SQLAPI.h file is "foo/SQLAP/include" and the path to "my_file.cpp" is "foo/ my_file.cpp". I attempted to include the file like this (what did I do wrong?): #include <stdio.h> // for printf -I<SQLAPI/include/SQLAPI.h> // main SQLAPI++ header int main(int argc, char* argv[]) { SAConnection con; // create connection object try { // connect to database // in this example it is Oracle, // but can also be Sybase, Informix, DB2 // SQLServer, InterBase, SQLBase and ODBC con.Connect(...etc... ...etc... Thank you! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
why is include not working? - beginner question
Top