Wierd error porting an app to codeblocks

Guys, I am porting one fo my mac apps to windws, in codeblocks. Ofx 0.8.4, with some addons (ofxUI, ofxFx, ofxXmlSettings and ofxOsc), but i am getting and error that i cannot understand the origin.

The error is

c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\..\..\..\libmingw32.a(main.o):main.c:(.text.startup+0xa7)||undefined reference to `WinMain@16'|

Any suggestions on where/what to look for?

p.s: Other apps are compiling without problem

Currently oF only officially supports codeblocks 12 – newer versions (e.g. 13.10) will have mixed results due to the incompatibilities between the pre-compiled oF libs). That said, what version of codeblocks are you using?

I@bakercp, I am using CB 12 with mingw since ofx 0.8.0 I think… Its the first time that i got that error and i am not founding any info that help me spot this problem (ofx and elsewhere).

I will research more tomorrow morning.

Very strange.

Do you have a properly formatted main function ?

Seem to, i am using the most plain main.cpp, and the codeblocks project was created by the project generator.

#include "ofMain.h"
#include "ofApp.h"
int main( ){
	ofSetupOpenGL(1280,720, OF_FULLSCREEN);
	ofRunApp(new ofApp());