This is a discussion on c++ compile problem within the Informix forums, part of the Database Server Software category; --> Hi, I just successfully installed the CSDK tools and now I am trying to compile a simple program that ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I just successfully installed the CSDK tools and now I am trying to compile a simple program that connects to an Informix database using the C++ library. I use the following command g++ -Wall -DIT_DO_NOT_SIMULATE_BOOL -I/opt/informix/incl -I/opt/informix/inc l/c++ -I/opt/informix/incl/cli -I/opt/informix/incl/dmi test.cpp test.cpp includes it.h which gives me the following error (as well as a deprecated header warning): In file included from /opt/informix/incl/dmi/ifxgls.h:27, from /opt/informix/incl/c++/itcppop.h:55, from /opt/informix/incl/c++/it.h:123, from test.cpp:2: /opt/informix/incl/dmi/gls.h:926: error: conflicting types for `typedef void*locale_t' /usr/include/locale.h:148: error: previous declaration as `typedef struct __locale_struct*locale_t' I am using g++ version 3.3.1 on SuSeLinux 9.0. Has anyone experienced the same problem and found a solution? Thanks, Martin Has anyone |
| ||||
| "Martin" <imxng@bootweb.nl> wrote in message news:40890cc7$0$561$e4fe514c@news.xs4all.nl... > Hi, > > I just successfully installed the CSDK tools and now I am trying to compile > a simple program that connects to an Informix database using the C++ > library. > I use the following command > > g++ -Wall -DIT_DO_NOT_SIMULATE_BOOL -I/opt/informix/incl -I/opt/informix/inc > l/c++ -I/opt/informix/incl/cli -I/opt/informix/incl/dmi test.cpp > > test.cpp includes it.h which gives me the following error (as well as a > deprecated header warning): > > In file included from /opt/informix/incl/dmi/ifxgls.h:27, > from /opt/informix/incl/c++/itcppop.h:55, > from /opt/informix/incl/c++/it.h:123, > from test.cpp:2: > /opt/informix/incl/dmi/gls.h:926: error: conflicting types for `typedef > void*locale_t' > /usr/include/locale.h:148: error: previous declaration as `typedef struct > __locale_struct*locale_t' > > I am using g++ version 3.3.1 on SuSeLinux 9.0. > Has anyone experienced the same problem and found a solution? No, but if it's the same as the aixism then try adding -D_LOCALE_H -- rh |