From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21440 invoked by alias); 20 Aug 2004 21:13:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21432 invoked from network); 20 Aug 2004 21:13:22 -0000 Received: from unknown (HELO tessmail.tesseract.com) (207.215.221.12) by sourceware.org with SMTP; 20 Aug 2004 21:13:22 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: STATUS_ACCESS_VIOLATION in a embedded sql c program compiled using gcc Date: Fri, 20 Aug 2004 22:07:00 -0000 Message-ID: <92F42ACDF6EDA547BA003A49A68A651E0ED0BD@tessmail.tesseract.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Sinha, Vinita" To: X-SW-Source: 2004-08/txt/msg00201.txt.bz2 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 t= here something I am missing or is it a known issue on which I can get some = help . Exception: STATUS_ACCESS_VIOLATION at eip=3D610D39A1 eax=3D00000000 ebx=3D00000000 ecx=3DFFFFFFFF edx=3DFFFFFFFF esi=3D00000000 = edi=3DFFFFFFFF ebp=3D0022D708 esp=3D0022D704 program=3DC:\R20006\cPrograms\2006l.exe, pid = 2088, thread main cs=3D001B ds=3D0023 es=3D0023 fs=3D0038 gs=3D0000 ss=3D0023 Stack trace: Frame Function Args 0022D708 610D39A1 (FFFFFFFF, 0022D7DE, 00401228, 00000001) 0022EE58 610D77FC (0022F208, 6111B310, 00401219, 0022EEA8) 0022EE78 610D6F05 (6111B310, 00401219, 0022EEA4, 0A051000) 0022EE98 610E4837 (00401219, FFFFFFFF, 00000000, 6111B374) 0022EF88 6108DF2F (69636131, 646D696E, 646D696E, 610F3EA0) 0022F058 004010EE (00000001, 0A050190, 0A0500A8, 00000001) 0022F0A8 61005F54 (0022F0C0, FFFFFFFF, 0A016A30, 0A016C44) 0022FF88 6100616B (00000000, 00000000, 00000000, 00000000) End of stack trace This is what I used to compile , bind the program and create the executable= . @echo off if exist "%1.sqx" goto embedded if exist "%1.sqc" goto embedded goto non_embedded :embedded rem Precompile and bind the program. call embprep %1 %2 %3 %4 rem Compile the program. if exist "%1.cxx" goto cpp_emb goto link_embedded :cpp_emb rem Link the program. :link_embedded gcc -m32 -I"C:\Program Files\SQLLIB\include" -I"C:\Program Files\SQLLIB\sam= ples\c" -g3 -Wall -c -fmessage-length=3D0 -osqlexample.o sqlexample.c gcc -m32 -L"C:\Program Files\SQLLIB\lib" -L"C:\Program Files\SQLLIB\includ= e" -o"2006l.exe" sqlexample.o utilemb.o "C:\Program Files\SQLLIB\lib\db2a= pi.lib" goto exit Thanks