Amiga.org

Amiga computer related discussion => Amiga/MorphOS/AROS Programmers Forum => Topic started by: Minuous on August 20, 2022, 04:54:54 AM

Title: VBCC taglist support
Post 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?
Title: Re: VBCC taglist support
Post by: Joloo on August 20, 2022, 06:11:41 PM
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).
Title: Re: VBCC taglist support
Post by: Minuous on August 21, 2022, 06:30:27 AM
Yes, that was the cause of the problem. Many thanks Joloo!