Unix Technical Forum

c++ compile problem

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 ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 09:12 PM
Martin
 
Posts: n/a
Default c++ compile problem

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 09:12 PM
Richard Harnden
 
Posts: n/a
Default Re: c++ compile problem


"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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:49 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com