I am having problems compiling a project which uses sql.h this includes sqltypes.h.
The project has been converted from c++ 5 to c++ 2009 I have tried changing options to no avail any ideas would be appreciated.
the path to the include directory is correct so I am assuming it is including sql.h and sqltypes.h from the current 2009 version rather than the c++ 5 include paths but when I compile I get the following errors
[BCC32 Error] sqltypes.h(276): E2139 Declaration missing ;
[BCC32 Error] sqltypes.h(277): E2139 Declaration missing ;
[BCC32 Error] sqltypes.h(278): E2238 Multiple declaration for 'WORD'
[BCC32 Error] sqltypes.h(277): E2344 Earlier declaration of 'WORD'
[BCC32 Error] sqltypes.h(278): E2139 Declaration missing ;
[BCC32 Error] sqltypes.h(279): E2139 Declaration missing ;
[BCC32 Error] sql.h(669): E2303 Type name expected
[BCC32 Error] sql.h(705): E2303 Type name expected
[BCC32 Error] sql.h(738): E2303 Type name expected
[BCC32 Error] sql.h(754): E2303 Type name expected
[BCC32 Error] sql.h(778): E2303 Type name expected
[BCC32 Error] sql.h(785): E2147 '__in' cannot start a parameter declaration
[BCC32 Error] sql.h(786): E2303 Type name expected
[BCC32 Error] sql.h(800): E2303 Type name expected
[BCC32 Error] odbcinst.h(99): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(103): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(104): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(106): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(121): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(130): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(137): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(144): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(152): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(156): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(157): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(159): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(160): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(162): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(169): E2147 'LPCSTR' cannot start a parameter declaration
[BCC32 Error] odbcinst.h(170): E2303 Type name expected
[BCC32 Error] odbcinst.h(178): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(180): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(192): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(194): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(197): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(214): E2147 'WORD' cannot start a parameter declaration
[BCC32 Error] odbcinst.h(215): E2303 Type name expected
[BCC32 Error] odbcinst.h(221): E2147 'DWORD' cannot start a parameter declaration
[BCC32 Error] odbcinst.h(221): E2303 Type name expected
[BCC32 Error] odbcinst.h(223): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(228): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(238): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(249): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(260): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(261): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(266): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(271): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(276): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(293): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(297): E2141 Declaration syntax error
[BCC32 Error] odbcinst.h(297): E2228 Too many error or warning messages
Comments
Good luck!