MinGW/TDM Link Errors — _time32, _localtime32, …

The following link errors can happen if the incorrect Chilkat C/C++ library is chosen. For example, if you are using the TDM 4.7.1 compiler, but you downloaded the Chilkat lib for MinGW-4.6.3, then you would get these errors: ../lib/libchilkat-9.5.0.a(ChilkatTm.o):ChilkatTm.cpp:(.text+0x80): undefined reference to `_localtime32′ ../lib/libchilkat-9.5.0.a(ChilkatTm.o):ChilkatTm.cpp:(.text+0x237): undefined reference to `_mktime32′ ../lib/libchilkat-9.5.0.a(ChilkatTm.o):ChilkatTm.cpp:(.text+0x1df9): undefined reference to `_time32′ ../lib/libchilkat-9.5.0.a(ChilkatTm.o):ChilkatTm.cpp:(.text+0x266): undefined reference to `_mktime32′ ../lib/libchilkat-9.5.0.a(Psdk.o):Psdk.cpp:(.text+0xdab): undefined […]

Linking C Language Windows DLL’s with Chilkat’s MinGW libs

(A helpful note from a Chilkat customer, reproduced in slightly edited form with permission) The primary issue was that I was creating a Windows DLL (using MinGW) rather than a Windows executable. Now, whilst I agree this shouldn’t make any difference it seems that it does. On the web site (http://www.chilkatsoft.com/downloads_mingw.asp) you indicate that MinGW systems should be linked with: […]