X-Spam-Check-By: sourceware.org Message-ID: <003201c7ef81$52e4e260$01fea8c0@SEGANFREDO> From: "Henrique Seganfredo" To: Subject: gcc linking issues with MQSeries library Date: Wed, 5 Sep 2007 02:55:08 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello folks, I am trying to use cygwin´s gcc to compile and link a library (.dll) that is supposed to use certain funciton bundled on an IBM provided library, from the MQSeries software (messaging middleware). I am getting a very strange error, that I could not find a single hit on google. The token is: Cannot export MQM_NULL_THUNK_DATA: symbol not found See the compiler cmdline and output below... $ uname -a CYGWIN_NT-5.1 w2691361 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin $ gcc --version gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) (inside Eclipse´s CDT...) **** Build of configuration Debug for project MQExit **** make -k all Building file: ../MQExit.c Invoking: GCC C Compiler gcc -I"C:\Arquivos de programas\IBM\WebSphere MQ\Tools\c\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"MQExit.d" -MT"MQExit.d" -o"MQExit.o" "../MQExit.c" (several warnings go here, but compile seems successfull.) Finished building: ../MQExit.c Building target: MQExit.dll Invoking: GCC C Linker gcc -L"C:\Arquivos de programas\IBM\WebSphere MQ\Tools\Lib" -shared -o"MQExit.dll" ./MQExit.o -lmqm Cannot export MQM_NULL_THUNK_DATA: symbol not found collect2: ld returned 1 exit status make: *** [MQExit.dll] Error 1 make: Target `all' not remade because of errors. Build complete for project MQExit ----------------- Is this some sort of incompatibility between the gcc linker and the provided mqm.lib? Would it only accept if compiled with VC++ from MS? Regards, Henrique Seganfredo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/