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!

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.