I have a project that compiles fine as long as you dont compile as debug.
The compiler returns with
error: expected constructor, destructor, or type conversion before '(' token
and the offending line is the ON_DEBUG ( 1, 109 );
#undef __GLBNO__
#define __GLBNO__ 110
#undef __GLBNO__
#define __GLBNO__ 110
ON_DEBUG ( 1, 109 );
#undef __GLBNO__
#define __GLBNO__ 111
#undef __GLBNO__
#define __GLBNO__ 111
// auto-mid handle mode (T/F).
#undef __GLBNO__
#define __GLBNO__ 112
#undef __GLBNO__
#define __GLBNO__ 112
//.
any idea to why this is happening ?
Also a little niggle, once you have selected to view the gpc_temp file, then recompile, the gpc_temp is not reloaded back in.
Bit more investigation and it appears the offending line was setting a var inside a type as an RGB() value. Think I read somewhere that you cant have deault values defaulting to a function ? in which case case solved.
type dummy
color= RGB(255,255,255)
end type
oh dear. I'll have a look.