Dev C++ Linker Error Undefined Reference To Winmain 16& 39

Hello Guys,

Linker Error undefined reference to '[email protected]' I tried some things and came to the solution, that #endif can't be after the main function, but it also cannot be in the main function, so I guess, that I have to put #endif somewhere else, but where? Before the main function doesn't make sense, because then, I could leave that out as well. How do I solve the following errors: “Undefined reference to WinMain”, “Error Id returned 1 exit status”? 2 Trying to use class files, getting “undefined reference to `[email protected]'” error.

I've just started programming C with Dev-C++ and am just trying to program a kind of role play (only fighting, nothing very good)
I had to create some Librarys and stuff and because of the possibility to have the same Library in the code, I used
and
and after the Main function, I ended with
this is the whole code:
So, after compiling, it says:
[Linker Error] undefined reference to '[email protected]'
I tried some things and came to the solution, that #endif can't be after the main function,
but it also cannot be in the main function,
so I guess, that I have to put #endif somewhere else, but where?
before the main function doesn't make sense, because then, I could leave that out as well.
Can anyone help me with this?
Greets,
Infinitysounds
PS: Of course I searched the FAQ and the Forums but I didn't find a solution.

Dev C++ Undefined Reference To Winmain

PPS: Sorry, dass es auf Englisch ist.Dev

Dev C++ Linker Error Undefined Reference To Winmain 16& 39 Download

Beitrag zuletzt geändert: 29.4.2011 21:41:11 von infinitysounds