View Single Post

   
  #7 (permalink)  
Old 02-27-2008, 11:51 AM
dotyet
 
Posts: n/a
Default Re: Error compiling DB2 C++ application.

Hi Ian,

Thanks for the tip, that did the magic. the file compiled with the
following warning only.. .... (which i will try to
"understand" )...

/home/db2inst1/sqllib/lib64/libimf.so: warning: warning: feupdateenv
is not implemented and will always fail
/usr/bin/ld: warning: libstdc++.so.5, needed by /home/db2inst1/sqllib/
lib/libdb2.so, may conflict with libstdc++.so.6

I am yet to read the document on how to use the struct though.

Interesting stuff...

Thanks a lot.

rgds,
dotyet


On Feb 27, 3:53 pm, Ian <ianb...@mobileaudio.com> wrote:
> dotyet wrote:
> > oops!!... sorry forgot to mention that i did use the prep command....

>
> > db2 "prep sample2.sqC bindfile"

>
> > which generated the .C file.

>
> > Anyways, advise taken and still waiting for more of them. For the time
> > being, the problem persists.

>
> Oh, and you have to include a definition for variable called 'sqlca'
> in your code, because the precompiler will generate code that depends
> on this variable's existence.
>
> Add:
>
> struct sqlca sqlca = { 0 };
>
> Then you should be OK.



Reply With Quote