Hello,
I'm trying to port an app from Windows to Linux, and when switching from dev environment the code below does not compile... Anyone would had any hint on the reason and how to fix it?
new dev environment is codeblocks, with MinGW compiler.
excerpt of aku.h
error at build time is:Code:#define AKU_DECLARE_FUNC_ACCESSORS(funcname) \ AKU_API AKU##funcname##Func AKUGetFunc_##funcname (); \ AKU_API void AKUSetFunc_##funcname ( AKU##funcname##Func func ); // Callback management typedef void ( *AKUEnterFullscreenModeFunc ) (); typedef void ( *AKUExitFullscreenModeFunc ) (); AKU_DECLARE_FUNC_ACCESSORS ( EnterFullscreenMode ) AKU_DECLARE_FUNC_ACCESSORS ( ExitFullscreenMode )
where line 44 is obviouslyCode:../../src/aku/AKU.h|44|error: expected constructor, destructor, or type conversion before ‘(’ token|
This code used to work under VS2008 though. Any idea where the error may come from?Code:AKU_DECLARE_FUNC_ACCESSORS ( EnterFullscreenMode )
thanks in advance.
Berteh.




Reply With Quote
