Is this a C or a C++ program? You've got a mixture of C++ and C
include files and your program is main.c but you're compiler is g++.
I changed stdlib.h to cstdlib but I had to keep sql.h. I was able to
get a clean compile.
-----------------------------------------------
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Programming\FromForum\sql_test.cpp" -o
"C:\Programming\FromForum\sql_test.exe" -I"C:\Dev-Cpp\include\c++"
-I"C:\Dev-Cpp\include\c++\mingw32" -I"C:\Dev-
Cpp\include\c++\backward" -I"C:\Dev-Cpp\include" -L"C:\Dev-
Cpp\lib"
Execution terminated
Compilation successful
----------------------------------------------
But I also did not link in all the GTK libraries you added.
Watson (the pencil neck) Davis
On 12 Oct 2004 at 17:15, Nigel George wrote:
> Hi,
> I've got Dev-C++ 4.9.9.0 installed and I'm trying to make some
> ODBC
> connections. This falls over with compilation errors. So I decided to
> replicate the error in the most simple of projects...
>
> // main.c
> #include <iostream>
> #include <stdlib.h>
> #include <sql.h>
>
> using namespace std;
>
> int main(int argc, char *argv[])
> {
>
> system("PAUSE");
> return 0;
> }
>
|