Amiga.org
Amiga computer related discussion => Amiga/MorphOS/AROS Programmers Forum => Topic started by: Minuous on August 20, 2022, 04:54:54 AM
-
I have set up VBCC to cross-compile AmigaOS 4 programs on Windows. But it seems to have trouble handling taglists; they cause an "identifier expected" error from the compiler. Is there any known fix or workaround?
-
Make sure that there are no preprocessor tokens while setting up the tagcall - vbcc does reject it.
Quoting ISO-C:
If there are sequences of preprocessing tokens within the list of arguments that would otherwise act as preprocessing directives, the behavior is undefined.
Undefined behaviour is easily raised by specifying "#if" or "#ifdef" within the argument list (tagcall).
-
Yes, that was the cause of the problem. Many thanks Joloo!