Multiple definition Error
hiya guys!
I've been a "Lurker" for a while so i thought id come out of the C-Closet and as a Q thats been annoying me for a while..
Im trying to install Allegro onto Windows, for use with Dev-Cpp.
I try to comile/run this program, to see if its all good:
Code:
#include <stdio.h>
#include <allegro.h>
int main()
{
allegro_init();
printf("allegro Version: %s\n", allegro_id);
printf("ANY KEY DAMMIT!\n");
system("pause");
allegro_exit();
return 0;
}
END_OF_MAIN()
Yeah i was getting vexed, hence the printf :p
The errors i get are:
Code:
multiple definition of `_mangled_main()'
first defined here
multiple definition of `WinMain@16'
first defined here
ld returned 1 exit status
C:\Dev-Cpp\Makefile.win [Build Error] [Project1.exe] Error 1
now i initially thought that there was more than lib file that had thrm inside, so on to project options... and i set -lalleg as the "linker"
Same error unfortunatly
So my Q would be...
does anyone (maybe an Allegro Guru) know where the "defenition" of the statements in those errors are kept? Im hoping that once i know that i can delete any multple entries, or files.
If anyone has come across this problem before, and knowws a solution, i would be really grateful for your help!