Re: libc++ demos from CSDK doesn't compile on linux MDK9.1 There must be std::hex instead of hex or somewhere in the beginning of
source file "using namespace std;".
It is the last issue except undefined references during linking.
Thanks for your help, now I can see I must use esql/c too :-(.
Thomas Ronayne wrote:
> petrxh wrote:
>> Yes, I have CSDK 2.81.UC2. Do you use C++ or ESQL/C?
>> I suppose ESQL/C shouldn't have big problems with newer gcc versions.
>>
>> Could you please try to run make in $INFORMIXDIR/demos/c++/ and let me
>> now if it can compile demo files?
>>
>> Thanks, Petr
>>
> I have zero -- and I do mean no -- problems with ESQL/C since installing
> the CSDK update. I tend to avoid C++ (just because it's too much of a
> pain in the butt; i.e., the too-often kinds of problems below, for me to
> care much about), but...
>
> I had to add
>
> -Wno-deprecated
>
> to CPPFLAGS in Makefile and change line 510 of
> ${INFORMIXDIR}/incl/dmi/gls.h from
>
> typedef GL_VOIDPTR gl_lc_t;
>
> to
>
> typedef __locale_struct* gl_lc_t;
>
> To get things to get going.
>
> After that, I'm getting messages like
>
> testtype.cpp: In member function `virtual const ITString&
> TestType::Printable()':
> testtype.cpp:193: `hex' undeclared (first use this function)
> testtype.cpp:193: (Each undeclared identifier is reported only once for
> each
> function it appears in.)
> make: *** [testtype.o] Error 1
>
> At that point, I give up (it starts to get beyond my pain threshold) --
> but those are something you ought to be able to chase down. |