11 July 2020, 13:11 | #1 |
Registered User
Join Date: Oct 2013
Location: Germany
Posts: 39
|
MUI and GCC >3
Hi all,
For my project I have to use a newer GCC. It compiled on OS 3 (with 2.95.3), OS 4 and MorphOS. However, using something newer than 3 leads to various errors. Using 6.5.0b I get: Code:
m68k-amigaos-gcc -I"." -I"../include" -I"../../AmiSSL/Developer/include" -Wno-write-strings -m68020 -MMD -c ../main.c -o main.o ../main.c:299: unterminated macro call ../main.c:497: unterminated macro call ... Code:
../main.c:497:2: unterminated argument list invoking macro "MUI_NewObject" ../main.c: In function `main': ../main.c:299: error: syntax error at end of input Code:
app = ApplicationObject, End; Last edited by ciVic; 11 July 2020 at 13:17. |
26 December 2022, 10:45 | #2 |
old chunk of coal
Join Date: Nov 2011
Location: Hungary
Posts: 1,300
|
In case someone else runs into this problem, I was able to work it around with this stub:
Code:
#undef MUI_NewObject Object *MUI_NewObject(CONST_STRPTR classname, Tag tag1, ...) { return MUI_NewObjectA(classname, (struct TagItem*)&tag1); } |
29 December 2022, 18:08 | #3 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
Using amiga-gcc and installing the mui SDK Code:
make sdk=mui |
|
30 December 2022, 08:02 | #4 | |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,200
|
Quote:
|
|
30 December 2022, 09:13 | #5 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
It's rather because of the inline macros. With these you need to define Code:
#define NO_INLINE_STDARG #define NO_INLINE_VARARGS |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basics of gcc | MartinW | Coders. C/C++ | 10 | 15 January 2020 14:33 |
gcc .lib | mritter0 | Coders. C/C++ | 13 | 27 October 2018 02:13 |
gcc and cybergraphics | zeGouky | Coders. C/C++ | 3 | 20 November 2016 04:08 |
GCC problems | Minuous | Coders. C/C++ | 3 | 08 September 2016 16:16 |
Horizontal Group Has Content Partially Hidden in MUI v4, Not MUI v3.8a | tygre | support.Apps | 6 | 29 February 2016 03:27 |
|
|