Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

linker error

This topic is 2113 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

 

?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!