error LNK2019:

February 4, 2010 at 14:45:04
Specs: Windows XP
I am receiving this error message and have tried to reset the linker to both windows AND console, I have remade this code into multiple projects, and nothing has changed... what am I doing wrong????

EDIT: I am using MSVS 2010 Beta


1>MSVCRTD.lib(wcrtexe.obj) : error LNK2019: unresolved external symbol _wmain referenced in function ___tmainCRTStartup
1>C:\Users\Administrator\My Documents\Visual Studio 10\Projects\Test1\Debug\Test1.exe : fatal error LNK1120: 1 unresolved externals


#include <iostream>
using std::cout;
using std::endl;
using std::cin;

class Equations
double a;

double area(double sideOne, double sideTwo)
double b = sideOne;
double c = sideTwo;
return a;

double volume(double sideOne,double sideTwo, double sideThree)
double b = sideOne;
double c = sideTwo;
double d = sideThree;
a = b*c*d;
return a;


void main()
double first = 0.0;
double second = 0.0;
int stopper = 0;

cout<<"Please enter the first side\n";
cout<<"Please enter the second side\n";

cout << "blank";


See More: error LNK2019:

Report •

February 4, 2010 at 15:10:13
APPARENTLY this error comes from the default Character setting being UNICODE.

I went into the properties and set it to MULTIBYTE and now it compiles just fine.

Thank god for scowering google for 2 hours 0,o.

Report •

February 4, 2010 at 23:39:53
Yeah, too bad VS 2010 didn't give a hint.


Helping others achieve escape felicity


Report •

Related Solutions

Ask Question