![]() |
|
undefined reference to 'WinMain@16' |
Shade
Member #1,152
April 2001
![]() |
Somehow this code refuses to compile:
I always get the same linker problem: Quote: C:\DEV-CPP\LIB/libmingw32.a(main.o)(.text+0x8d):main.c:undefined reference to 'WinMain@16'
No matter what I do as long as #include "allegro.h" or #include <allegro.h> Other projects using the allegro library are compiling just fine??? I checked the Dev-Cpp helpfiles but this says I forgot to put in a main() function,if not I should compile a second time(but even aftere the 10th time and the 4th restart of Dev-C it gives the same problem.) I have no clue what the problem could be. Shade |
23yrold3yrold
Member #1,134
March 2001
![]() |
-- |
Shade
Member #1,152
April 2001
![]() |
thank you very much,you saved my day. It works...:o Is this because I added the" #include allegro.h " I now need to use END_OF_MAIN??? Shade??? |
spellcaster
Member #1,493
September 2001
![]() |
yes. -- |
Shade
Member #1,152
April 2001
![]() |
hmm...I better never forget this again:-[ Shade |
DanielH
Member #934
January 2001
![]() |
Evert
Member #794
November 2000
![]() |
Let me guess: you've been using DJGPP up until this point, right? |
23yrold3yrold
Member #1,134
March 2001
![]() |
See? One word posts can be helpful Shouldn't END_OF_MAIN() link to the docs like the other functions (I know; it's a macro -- |
|