Hi people,

Excuse me for a newbie question, I have troubles porting my project to  
mingw environment. I reduced the problem to the simple test case:

$ echo "#include <time.h>" | g++ -x c++ - -O0 -fkeep-inline-functions  
-shared

compiles fine, but

$ echo "#include <time.h>" | g++ -x c++ - -O2 -fkeep-inline-functions  
-shared
gives:
C:\Users\VC4B9~1.SYS\AppData\Local\Temp\ccIKbw34.o:─:(.text$_mkgmtime[__mkgmtime]+0x1):
  
undefined reference to `_mkgmtime32'

I found the _mkgmtime32 defined in libmsvcr{1100,100,90,90d,80}.a and  
wonder what is the assumed way to link with one of these? I though msvcrt  
is something like glibc and should be used transparently?

My specs:
win7 professional SP1, x86
mingw-w64 i686-4.9.1-posix-dwarf-rt_v3-rev0

Regards, Slava


------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to