954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Visual Studio 2008 with Gwin errors!!

Hello :)

I'm having a couple of errors that i just can't get my head around so please help!

Error 1

warning C4018: '<' : signed/unsigned mismatch

for (int i=0; i<numVehicles; ++i)


Error 2

error LNK2019: unresolved external symbol _main referenced in function "int __cdecl console_main(int,char * * const)" (?console_main@@YAHHQAPAD@Z)

int _tmain(int argc, _TCHAR* argv[])
{
	GWindow Gwin;
	
	// Clear the Gwin window
	Gwin.clear();
	
	Gwin.setPenColour(BLACK);

	char tags[MAX_VEHICLES];
	void * vehicles[MAX_VEHICLES];

	ifstream infile;
	if (argc >1)
	{
		//filename passed as command line argument
		//set in Project->Properties->Configuration->Debugging
		infile.open(argv[1]);
	}
	else 
	{
		string fileName;
		cout << "File to open" << endl;
		cin >> fileName;
		infile.open(fileName.c_str());
	}


Thanks!

lauw0203
Newbie Poster
7 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

No worries, I've took it out of Gwin. Don't even need to use it! Thanks if you went to help lol xx

lauw0203
Newbie Poster
7 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: