Dear all i have this error
/mingw/comp_4.9.2_testversion/bin/g++.exe -o Debug/17_01_Dev.exe -Wl,-Map,MAP.map -Wl,–allow-multiple-definition -LSRC_Code @Debug/17_01_Dev.exe.in -lwinmm -lws2_32 C:\VisualGdb\17_01_Dev\17_01_Dev\SRC_Code\MYLIB.lib -static-libstdc++ -static-libgcc
1> C:\VisualGdb\17_01_Dev\17_01_Dev\SRC_Code\MYLIB.lib(clocklFile.o):clocklFile.cpp: error VGDB1002: undefined reference to `_imp__timeSetEvent@20′
1> C:\VisualGdb\17_01_Dev\17_01_Dev\SRC_Code\MYLIB.lib(clocklFile.o):clocklFile.cpp: error VGDB1002: undefined reference to `_imp__timeKillEvent@4′
1> C:\VisualGdb\17_01_Dev\17_01_Dev\SRC_Code\MYLIB.lib(clocklFile.o):clocklFile.cpp: error VGDB1002: undefined reference to `_imp__timeBeginPeriod@4′
1> C:\VisualGdb\17_01_Dev\17_01_Dev\SRC_Code\MYLIB.lib(clocklFile.o):clocklFile.cpp: error VGDB1002: undefined reference to `_imp__timeSetEvent@20′
1> C:\VisualGdb\17_01_Dev\17_01_Dev\SRC_Code\MYLIB.lib(clocklFile.o):clocklFile.cpp: error VGDB1002: undefined reference to `_imp__timeKillEvent@4′
1> C:\VisualGdb\17_01_Dev\17_01_Dev\SRC_Code\MYLIB.lib(clocklFile.o):clocklFile.cpp: error VGDB1002: undefined reference to `_imp__timeSetEvent@20′
1>collect2.exe : error : ld returned 1 exit status
I think the issue is that i need to put my .lib file before library names winmm ws2_32
VisualGDB doesnt allow this
If i put my lib at library names it uses -l flag and ofcourse it doesnt find it
If i put it in additional linker inputs i get these errors
Is VisualGDB not flexible enough? I cannot imagine no one use in a .lib files from mingw distribution
-
This topic was modified 8 years, 5 months ago by b.timofte.