Bucky`s tutorial 15

0 Dave Nuttall · July 14, 2014
Using Code Blocks when I build and run I get error message "Undefined reference to "WinMain@16"

Any ideas please?

Post a Reply

Replies

Oldest  Newest  Rating
+1 Mathias Frits Rørvik · July 14, 2014
Which version of codeblocks did you download?
+2 Franz Schmidt · July 14, 2014
Could you please post your code as well?
0 Dave Nuttall · July 14, 2014

The version is 13.12

Code below, thanks for your help

Each class is in a separate file as per tutorial 15 by Bucky






#include <iostream>

#include "hoping.h"


using namespace std;

int main()
{
hoping bo;
}

#ifndef HOPING_H
#define HOPING_H


class hoping
{
public:
hoping();
protected:
private:
};

#endif // HOPING_H

#include "hoping.h"
#include <iostream>

using namespace std;

hoping::hoping()
{
cout << "I am hoping and praying this works " << endl;
}

+1 Mathias Frits Rørvik · July 16, 2014
If you're on Windows you might be better off just using Visual Studio Express 2013. 
  • 1

C++

107,297 followers
About

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

Links
Moderators
Bucky Roberts Administrator