|
From: Nigel G. <nig...@cp...> - 2004-10-12 16:16:45
|
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;
}
As you can see, this is just a standard console app with the addidition of
"#include <sql.h>", this causes the compile process to fall over.
Compiler: Default compiler
Building Makefile: "D:\C++\ODBCTest\Makefile.win"
Executing make...
make.exe -f "D:\C++\ODBCTest\Makefile.win" all
g++.exe -c main.c -o main.o -I"C:/GTK/INCLUDE" -I"C:/GTK/INCLUDE/GTK-2.0"
-I"C:/GTK/INCLUDE/GLIB-2.0" -I"C:/GTK/INCLUDE/PANGO-1.0"
-I"C:/GTK/INCLUDE/ATK-1.0" -I"C:/GTK/INCLUDE/GTKGLEXT-1.0"
-I"C:/GTK/LIB/GTK-2.0/INCLUDE" -I"C:/GTK/LIB/GLIB-2.0/INCLUDE"
-I"C:/GTK/LIB/GTKGLEXT-1.0/INCLUDE" -I"C:/GTK/INCLUDE/LIBGLADE-2.0"
-I"C:/GTK/INCLUDE/LIBXML2" -I"C:/Program Files/Dev-Cpp/include/c++"
-I"C:/Program Files/Dev-Cpp/include/c++/mingw32" -I"C:/Program
Files/Dev-Cpp/include/c++/backward" -I"C:/Program Files/Dev-Cpp/include"
-I"D:/C++/ODBCTest"
In file included from odbcutil.H:3,
from main.c:1:
C:/Program Files/Dev-Cpp/include/sqltypes.h:17: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:18: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:24: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:25: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:26: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:27: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:29: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:34: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:36: error: syntax error before
`;'
token
C:/Program Files/Dev-Cpp/include/sqltypes.h:37: error: syntax error before
`;'
token
There is much more output than this but is the start of it. Someone
elsewhere told me that it appears the sql/odbc headers with Dev-C++ are
broken.
Does anyone else get this error? Or know a fix for it.
Nigel George
Developer
CPiO Limited
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Telephone : +44 (0) 1675 467046
Facsimile : +44 (0) 1675 467682
E-Mail : mailto:nig...@cp...
<mailto:nig...@cp...>
Web : http://www.cpio.co.uk/ <http://www.cpio.co.uk/>
The views expressed within this message are those of the sender, not
those of the company unless endorsed by a Director of CPiO Limited.
|