06 March 2024, 12:47 | #1541 | |
Registered User
Join Date: Aug 2010
Location: Germany
Posts: 532
|
Quote:
R5 features further interface header file changes which render them more robust if the compiler environment claims to be the GNU 'C' compiler, but is really clang. The interface header files assumed that if gcc was showing its hand, it was a native or cross compiler targeted for AmigaOS 68k. With the current work-in-progress, you can actually use these header files directly with VSCode, for example, and no local changes required to even narrowly avoid tripping the code completion up. One of these days we might even had helpful code comments in the <clib/#?_protos.h> header files R4 was still focused on getting the gcc 68k and vbcc interface header files into shape. That there was more trouble on the horizon with cross-compilation, etc. had yet to be discovered and addressed |
|
06 March 2024, 13:07 | #1542 | |
Registered User
Join Date: Jul 2022
Location: Australia
Posts: 49
|
Quote:
Now I'm eagerly awaiting R5! My goal is to use (neo)vim with something like YCM as the auto-completion plugin. If I can get that going with 3.2 NDK R5 I'll be super happy. Thanks for the update. -M |
|
06 March 2024, 13:36 | #1543 |
Registered User
Join Date: Apr 2018
Location: Germany
Posts: 189
|
Thanks for showing the CMakeLists file, I'll have a look at it.
For autocomplete when programming in VSCode I have a workaround. In vscode setting file c_cpp_properties.json I define __clang__ Code:
"defines": [ "__clang__" ], Code:
#ifdef __clang__ #include <clib/alib_protos.h> #include <clib/exec_protos.h> #include <clib/dos_protos.h> #include <clib/intuition_protos.h> #else #include <proto/alib.h> #include <proto/dos.h> #include <proto/exec.h> #include <proto/intuition.h> #endif |
06 March 2024, 14:06 | #1544 | |||
Registered User
Join Date: Aug 2010
Location: Germany
Posts: 532
|
Quote:
Quote:
Quote:
Just this month we kindly received fixes for the assembly language header files found in the "datatypes" drawer: they had been broken since at least 1993. The dos.library 'C' header files have been thoroughly reworked for perhaps the first time since 1989. There's plenty to look forward to and, hopefully, make it easier to unlock what was previously hard to find in the documentation, if at all. |
|||
07 March 2024, 05:14 | #1545 |
Registered User
Join Date: Jul 2022
Location: Australia
Posts: 49
|
Thanks Thyslo! I think there are other non-proto files that use __stdargs and ASM registers that clang refuses to work with. However, this might be a good stop-gap to eliminate a good chunk of errors!
-M |
07 March 2024, 12:16 | #1546 |
Registered User
Join Date: Jul 2022
Location: Australia
Posts: 49
|
Ok, I replaced the NDK version installed as part of the toolchain with R4 and clang complains much less, like much less. So for now I can probably live with this until R5 is made available! Thanks again.
-M |
07 March 2024, 17:33 | #1547 | |
Registered User
Join Date: Aug 2010
Location: Germany
Posts: 532
|
Quote:
Maybe there is a future for the NDK 3.2 R4 header files in the gcc distribution after all. |
|
07 March 2024, 21:03 | #1548 | |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
Quote:
Code:
#ifdef __clang__ #define __stdargs #define __aligned #include <clib/dos_protos.h> #include <clib/exec_protos.h> #else #include <proto/dos.h> #include <proto/exec.h> #endif |
|
08 March 2024, 09:33 | #1549 | |
Registered User
Join Date: Aug 2010
Location: Germany
Posts: 532
|
Quote:
|
|
08 March 2024, 10:48 | #1550 | |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New GCC based dev toolchain for AmigaOS 3.x | cla | Coders. Releases | 8 | 24 December 2017 10:18 |
Issue with photon/xxxx WinUAE Toolchain | arpz | Coders. Asm / Hardware | 2 | 26 September 2015 22:33 |
New 68k gcc toolchain | arti | Coders. C/C++ | 17 | 31 July 2015 03:59 |
Hannibal's WinUAE Demo Toolchain 5 | Bobic | Amiga scene | 1 | 23 July 2015 21:04 |
From gcc to vbcc. | Cowcat | Coders. General | 9 | 06 June 2014 14:45 |
|
|