linker error

Started by
4 comments, last by phil67rpg 10 years, 6 months ago

I am studying big c++. I am working with their graphical headers. here Is the code

{code]

#include "ccc_win.h"

int ccc_win_main()

{

Point p(1, 3);

cwin << p << Circle(p, 2.5);

return 0;

}

I keep getting the following error.

>------ Build started: Project: ch3c, Configuration: Debug Win32 ------

1>LINK : fatal error LNK1561: entry point must be defined

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I will work to solve this error. I am using vs 2010.

?

Advertisement

The entry point in C++ / C programs is the function 'main'. The linker is telling you that you do not have it defined in your program.

is the line int ccc_win_main() incorrect?

is the line int ccc_win_main() incorrect?

Probably not, but it's also not main. I'm guessing that in a different execution module, which happens to define main(), it will do some setup of the graphics library and then eventually call ccc_win_main(). You may need to link against this module or you may even need to compile it and then link.

ok what should I change?

well I finally found the right file and solved my problem, thanks for all the help.

This topic is closed to new replies.

Advertisement