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/