Welcome, Guest. Please login or register.

Author Topic: VBCC taglist support  (Read 377 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MinuousTopic starter

VBCC taglist support
« 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?
 

Offline Joloo

Re: VBCC taglist support
« Reply #1 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).
 

Offline MinuousTopic starter

Re: VBCC taglist support
« Reply #2 on: August 21, 2022, 06:30:27 AM »
Yes, that was the cause of the problem. Many thanks Joloo!