Wpis z mikrobloga

Co jest? W #mingw pod Windows 10 dostaję taki komunikat:

||=== Build: Debug in GLtest (compiler: GNU GCC Compiler) ===|
||Warning: resolving _VirtualQuery@12 by linking to _VirtualQuery|
||Warning: resolving _VirtualProtect@16 by linking to _VirtualProtect|
||Warning: resolving _EnterCriticalSection@4 by linking to _EnterCriticalSection|
||Warning: resolving _LeaveCriticalSection@4 by linking to _LeaveCriticalSection|
||Warning: resolving _DeleteCriticalSection@4 by linking to _DeleteCriticalSection|
||Warning: resolving _IsDBCSLeadByteEx@8 by linking to _IsDBCSLeadByteEx|
||Warning: resolving _Sleep@4 by linking to _Sleep|
||Warning: resolving _InterlockedExchange@8 by linking to _InterlockedExchange|
..\..\..\..\..\MinGW\lib\libmingw32.a(tlsthrd.o):tlsthrd.c|| undefined reference to
InitializeCriticalSection@4'|
..\..\..\..\..\MinGW\lib\libmingwex.a(misc.o):misc.c|| undefined reference to InitializeCriticalSection@4'|
..\..\..\..\..\MinGW\lib\libmingwex.a(misc.o):misc.c|| undefined reference to
InitializeCriticalSection@4'|
||error: ld returned 1 exit status|
||=== Build failed: 4 error(s), 8 warning(s) (0 minute(s), 0 second(s)) ===|
`

No więc co jest nie tak? libkernel32.a mam dodany w linkerze, a jak widać innych odwołań do tej biblioteki się nie czepia tylko tego jednego? wtf?

#cplusplus #jezykc #programowanie
  • 3