Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic C++ program
Message
 
 
À
Tous
Information générale
Forum:
Visual C++
Catégorie:
Codage, syntaxe et commandes
Titre:
Basic C++ program
Divers
Thread ID:
01121528
Message ID:
01121528
Vues:
53
My operative sustem is windows xp and i am using vc++ 6.0

I ran the following code
//Nombre del espacio de trabajo :Hello
// Nombre del programa: Helloworld.cpp

# include <iostream.h>

int main()

{
cout<< "HELLO WORLD \n";
return 0;
}
i compiled it and i got this result

--------------------Configuration: Hellolm - Win32 Debug--------------------
Linking...
LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/Hellolm.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Hellolm.exe - 2 error(s), 0 warning(s)



i searched for a solution and had found this

PRB: Error LNK2001: '_WinMain@16': Unresolved External Symbol
Last reviewed: September 26, 1997
Article ID: Q125750
The information in this article applies to:
The C Run-time (CRT) included with: - Microsoft Visual C++, 32-bit Edition, version 2.0, 2.1, 4.0, 5.0


SYMPTOMS
The linker generates the following error, when you build an MFC application with UNICODE support using the Microsoft products listed at the beginning of this article:

msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external
symbol "_WinMain@16"

CAUSE
MFC UNICODE applications use wWinMainCRTStartup as the entry point.

RESOLUTION
In the Output category of the Link field in the Project Settings dialog box, set the Entry Point Symbol to wWinMainCRTStartup.


i did what did the help told me and it didnt work, what can i do ?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform