Advertisement

LNK 1561 error

Started by June 25, 2019 01:20 AM
1 comment, last by Green_Baron 5 years, 2 months ago

I am working with the big c++  text. I am  trying to work with its graphics library. my error is LNK 1561 entry point must be defined.


#include "ccc_win.h"

int ccc_win_main()
{
	Point p(1, 3);
	cwin << p << Circle(p, 2.5);

	system("pause");
	return 0;
}

 

The entry point of any C or C++ program is main and nothing else but main.

To be precise: int main( int argc, char **argv ) { /* program code */ }

char *argv[] as second argument is acceptable.

I have seen things entry functions like wmain or winmain before, but that is proprietary ms. Other implementations might have others (check documentation), but main should always work, and if not a colleague will soon jump in and correct me.

:-)

 

This topic is closed to new replies.

Advertisement