STATUS_ACCESS_VIOLATION in a embedded sql c program compiled using gcc

Torsten Lange torsten.lange@fja.com
Fri Dec 17 15:33:00 GMT 2004


> -----Original Message-----
> From: gcc-help-owner <at> gcc.gnu.org [mailto:gcc-help-owner <at> > 
>cc.gnu.org]On
> Behalf Of Sinha, Vinita
> Sent: Friday, August 20, 2004 5:13 PM
> To: gcc-help <at> gcc.gnu.org
> Subject: STATUS_ACCESS_VIOLATION in a embedded sql c program compiled
> using gcc
> 
> 
> Hi,
> I have a embedded sql C program compiled and bound using gcc version 3.3.1 .
>It goes againat udb/db2  version
> 8.1 .
> I am getting the following error when trying to execute  the program . Is
> there something I am missing or is it a
> known issue on which I can get some help .
> 
> Exception: STATUS_ACCESS_VIOLATION at eip=610D39A1
> eax=00000000 ebx=00000000 ecx=FFFFFFFF edx=FFFFFFFF esi=00000000 edi=FFFFFFFF
> .......
> End of stack trace
> .......
> 
> Thanks
> 
> 


Hi,

I've tried the same (using gcc 3.3.3 (cygwin special)) and execution results 
in STATUS_ACCESS_VIOLATION too. Then I ported the program to Suse Linux. 
In fact I have modified the make file - no source code modifications were
necessary - and
it worked. So the question remains: Is it possible to link a gcc compiled 
progam against MSVC compiled library db2api. Are there any additional 
parameter for linking?
BTW: I was able to execute the cli samples delivered with DB2 UDB compiled 
with gcc on Windows NT (they use db2cli).

Thanks,
Torsten



More information about the Gcc-help mailing list