Placing Classes in Separate Files error

+1 Douglas Jr Crawshaw · December 30, 2015
After making sure I typed the program correctly, I ran it again and got:
 "undefined reference to `WinMain@16'"

I checked all the files, and CodeBlocks did not specify a line where there might be an error.

What do I need to do?

Post a Reply

Replies

Oldest  Newest  Rating
0 Douglas Jr Crawshaw · December 30, 2015
OK.  I created a new project as a console application, then created the new Burrito class as instructed.  I get the same error.  So, I tried creating two blank files with the .cpp and .h code.  Still, same thing.
0 Douglas Jr Crawshaw · December 31, 2015
OK, everything works now.  (Apparently when I made the new project, there were duplicate classes.  I took them out of the project, and now everything works.)
  • 1

C++

107,332 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator