du har oprettet et Win32 console project som bruger main. WinMain bruges i et Win32 application (når du file->new'er et project). Compilering går godt, fordi det ikke er noget galt i at have en "function" der hedder WinMain. Men linkeren forventer at finde main som start entry.
fandt også det her: Question: I try to compile an app using ClanLib under Visual C++ and it gets unresolved external symbol _main... Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Answer: You have to create a Win32 Application project and not a Win32 Console Application. Otherwise, add the linker option "/entry:WinMainCRTStartup" to your project options.
Yes, yes nu virker det. Det var dette der hjalp mig:
Answer: You have to create a Win32 Application project and not a Win32 Console Application. Otherwise, add the linker option "/entry:WinMainCRTStartup" to your project options.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.