what the hell ?

c:mingw/bin/../lib/gcc/mingw32/4.8.1/../../../mingw32/lib/libmingw32.a(main.o):
In function 'main': e:\p\giaw\src\pkg\mingwrt-4.0.3-1mingw32-src\bld/../mingwrt-4.0.3-1-mingw32-src/src/libcrt/crt/main.c:91: undefined reference to 'WinMain@16'

collect2.exe : error : Id returned 1 exit status



okkk... can someone translate this to any kind of language i can understand. This is a message from my compiler, and i get the c:\ part, but i dont have nothing in E: disk... C,D flash USB F:, and DVD-RW drive that havent used it in yeeeaaars. Looong before i started learning c++.

but here is the code.

function_out_of_class
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include "tester.h"

using namespace std;

void TEST::Sexy(){
}

void Sexy_2()
{cout<<"Sexy Header!"<<endl;}



tester.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef TEST_H
#define TEST_H

#include <iostream>

using namespace std;


// 	void Sexy() 						// sljaka ovaj kod, bilo je potrebno samo pozvati ga.
// 	{cout<<"Sexy Header!"<<endl;}

class TEST{

	public :
	
	void Sexy();
	

};

#endif //TEST_H 


soo any translation or clarification pls?
ok... seen that i havent commented #include line and namespace part in tester. I'll try it now.

Nope, still the same message
Last edited on
Do you have a main function declared anywhere? It's either that or you chose an incorrect project type so the compiler is looking for a different signature for the main function.
Topic archived. No new replies allowed.