User forums > Help

Problem with building program

(1/1)

malkolm:
Hello everyone,

I was hoping someone could help me with problem I've been having.

When I try compile my program, I got following:

Build log:

C:\MinGW\lib/libmingw32.a(tlsthrd.o):tlsthrd.c:(.text+0x1e7): undefined reference to `EnterCriticalSection@4'
C:\MinGW\lib/libmingw32.a(tlsthrd.o):tlsthrd.c:(.text+0x204): undefined reference to `LeaveCriticalSection@4'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
11 errors, 0 warnings
 

MortenMacFly:

--- Quote from: malkolm on December 26, 2010, 04:57:28 pm ---C:\MinGW\lib/libmingw32.a(tlsthrd.o):tlsthrd.c:(.text+0x1e7): undefined reference to `EnterCriticalSection@4'

--- End quote ---
http://lmgtfy.com/?q=undefined+reference+to+EnterCriticalSection

...the 4th link (located at microsoft.com) gives the full answer.

Navigation

[0] Message Index

Go to full version