This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: STATUS_ACCESS_VIOLATION in a embedded sql c program compiled using gcc
- From: Torsten Lange <torsten dot lange at fja dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 17 Dec 2004 14:55:58 +0000 (UTC)
- Subject: Re: STATUS_ACCESS_VIOLATION in a embedded sql c program compiled using gcc
- References: <66911C8E1F2DA24EB29DE289297A135E1FC07D@usrd104.corp.anacomp.com>
> -----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