View Single Post
Old 16 March 2017, 07:36   #2
alpine9000
Registered User
 
Join Date: Mar 2016
Location: Australia
Posts: 881
Quote:
Originally Posted by mbergmann-sh View Post
HELP appreciated! What's wrong with this declaration:

Code:
static int (*calltrap)(...) = (int (*)(...))0xF0FF60;
vbcc moans it as "error 0 - declaration expected", while SAS/C, StormC v3 eat it as beeing OK.

How do I have to rewrite this statement in order to get vbcc to come clear with it?

Thanks in advance,

Michael
GCC gives us a more descriptive error:

Code:
error: ISO C requires a named argument before ‘...’
So for me the following compiles in gcc:

Code:
static int (*calltrap)(int, ...) = (int (*)(int, ...))0xF0FF60;
Sorry I can't test with vbcc, my install is borked at the moment.
alpine9000 is offline  
 
Page generated in 0.04406 seconds with 11 queries