Hi,
I need some advice regarding a C program I am trying to build with MinGW on a Windows XP system. The program is an f2c'd version of a Fortran program which factorises a complex polynomial (see http://www.netlib.org/toms/419 for details). I am attempting to build the program as follows:
C:\MinGW>gcc -c algorithm419.c
C:\MinGW>gcc algorithm419.o libf2c.lib
I then get the following messages on screen:
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
libf2c.lib(./release without wrap/open1.obj):(.text[_f_open]+0x7): undefined reference to `__security_cookie'
libf2c.lib(./release without wrap/open1.obj):(.text[_f_open]+0x252): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/open1.obj):(.text[_f_open]+0x46a): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/open1.obj):(.text[_f_open]+0x496): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/open1.obj):(.text[_fk_open]+0x4): undefined reference to `__security_cookie'
libf2c.lib(./release without wrap/open1.obj):(.text[_fk_open]+0xa0): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/endfile1.obj):(.text[_copy]+0x7): undefined reference to `__security_cookie'
libf2c.lib(./release without wrap/endfile1.obj):(.text[_copy]+0x6e): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/endfile1.obj):(.text[_copy]+0x8b): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/endfile1.obj):(.text[_f_end]+0x4): undefined reference to `__security_cookie'
libf2c.lib(./release without wrap/endfile1.obj):(.text[_f_end]+0x6c): undefinedreference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/endfile1.obj):(.text[_f_end]+0x91): undefinedreference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/endfile1.obj):(.text[_f_end]+0xb5): undefinedreference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/endfile1.obj):(.text[_f_end]+0xd8): undefinedreference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/wref1.obj):(.text[_wrt_E]+0x4): undefined reference to `__security_cookie'
libf2c.lib(./release without wrap/wref1.obj):(.text[_wrt_E]+0x197): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/wref1.obj):(.text[_wrt_E]+0x303): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/wref1.obj):(.text[_wrt_E]+0x3ce): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/wref1.obj):(.text[_wrt_E]+0x424): undefined reference to `@__security_check_cookie@4'
libf2c.lib(./release without wrap/wref1.obj):(.text[_wrt_F]+0x7): undefined reference to `__security_cookie'
libf2c.lib(./release without wrap/wref1.obj):(.text[_wrt_F]+0x1b0): undefined reference to `@__security_check_cookie@4'
collect2: ld returned 1 exit status
Can anyone tell me what the problem might be? I realise this is not strictly a LAPACK/CLAPACK question, however I get the same error message when trying to build programs that call the CLAPACK library. Therefore I think my question has some relevance!
Thanks,
Brendan.

