Have simple test case:
With gcc all compiles fine:
ram:> ppc-amigaos-gcc -c test.c
With g++ have errors:
ram:> ppc-amigaos-g++ -c test.c
test.c: In function 'int main()':
test.c:9: error: 'AHI_AllocAudio' was not declared in this scope
Do check sdk/include/include_h/inline4/ahi.h and found:
Questions is:
1. why it disabled for c++
2. how to fix them normally and make it works as i need without change to AHI_AllocAudioA()
Thanks
#define __USE_INLINE__ #include <proto/ahi.h> main() { AHI_AllocAudio(0,0,0,0,0,0,TAG_DONE); }
#define AHI_AllocAudioA(tagList) IAHI->AHI_AllocAudioA(tagList) #if !defined(__cplusplus) && (__STDC_VERSION__ >= 199901L || __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)) #define AHI_AllocAudio(...) IAHI->AHI_AllocAudio(__VA_ARGS__) #endif