Jun 9, 2014 at 3:40pm
"fails"? There must be some error message that says what in the code is unacceptable to g++ 4.8.2.
Line 16, perhaps?
Jun 9, 2014 at 4:10pm
Yes line 16.
t01.cpp:40:16: error: expected ')' before '*' token
int (__cdecl *Emitter)(char *,PINT);
^
Compilation failed.
The ^ should be pointing at the *
Last edited on Jun 9, 2014 at 4:12pm
Jun 9, 2014 at 4:24pm
__cdecl
is it a MS thingy?
Jun 9, 2014 at 4:37pm
Yes it is an MS thingy and I should have known but the old brain cells are rapidly diminishing :)
I removed the __cdecl and it compiles with g++ on Linux.
Thanks for the nudge.
James