J
Jason
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!
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!