undefined reference to `_msgDebug' in GCC

Anik Pal anik@vadodara.oilfield.slb.com
Sat Feb 2 09:05:00 GMT 2008


I am trying to using a library in my code whose default compiler is MSVCRT.
When I try to compile that code in cygwin GCC environment I get the
following errors

F:/geolog6.6.1/lib/libgeolog6.a(fileprintf.o):C:/development/ptc:(.text+0x9)
: undefined reference to `__chkstk'
F:/geolog6.6.1/lib/libgeolog6.a(specyacc.o):C:/development/ptc:(.text+0x118)
: undefined reference to `__alloca_probe'
F:/geolog6.6.1/lib/liblicence.a(licence.o):C:/development/ptc:(.text+0x41):
undefined reference to `_dateInit'
F:/geolog6.6.1/lib/liblicence.a(licence.o):C:/development/ptc:(.text+0x89):
undefined reference to `_msgInit'
F:/geolog6.6.1/lib/liblicence.a(licence.o):C:/development/ptc:(.text+0x147):
undefined reference to `_dateTerm'
F:/geolog6.6.1/lib/liblicence.a(licence.o):C:/development/ptc:(.text+0x177):
undefined reference to `_msgTerm'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x72
b): undefined reference to `_fileDtm'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x74
2): undefined reference to `_fileDtm'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x74
d): undefined reference to `_dateCurrent'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x7d
d): undefined reference to `_fileDtm'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x81
5): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x9a
6): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0x9e
d): undefined reference to `_msgBrief'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xaa
b): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xad
8): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xb4
b): undefined reference to `_dateUserid'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xbe
5): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licflexapi.o):C:/development/ptc:(.text+0xc3
3): undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0x56)
: undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0x71)
: undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0x80)
: undefined reference to `_msgDebug'
F:/geolog6.6.1/lib/liblicence.a(licence_c.o):C:/development/ptc:(.text+0xb4)
: more undefined references to `_msgDebug' follow

Can anyone tell me which cygwin-mingw library to be added to get rid of this
linking error?

My make file linking option I'm providing as follows

-LF:/geolog6.6.1/lib -lcgg -lgeolog6  -llicence -llogs_dll -lPGILc_dll
-lPGILcTool_dll -lcgs -llmgr9a -LD:/cygwin/lib -lcygwin
-LD:/cygwin/lib/mingw -lmsvcrt -Bstatic -LD:/cygwin/lib -lm




Anik Pal
Schlumberger, Vadodara, India



--
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/



More information about the Cygwin mailing list