With devkitPPC release 38 - 10.2.0 (versions for powerpc-eabi-gcc and powerpc-eabi-g++) i can't compile (link) the current master version of WiiSXRX. The linker produce many 'multiple definition of ...' messages and failed to link successfully.
The main reason are the global (non static) variables in header files and the extern inline functions in the header files. Including this header files in different translation units produces the multiple definitions. To fix it I make the definition of the non-static global variables in the correct c-files and only give the declarations to the header file (with extern). The inline functions are changed from extern inline to static inline to avoid the multiple definitions.
With devkitPPC release 38 - 10.2.0 (versions for powerpc-eabi-gcc and powerpc-eabi-g++) i can't compile (link) the current master version of WiiSXRX. The linker produce many 'multiple definition of ...' messages and failed to link successfully.
The main reason are the global (non static) variables in header files and the extern inline functions in the header files. Including this header files in different translation units produces the multiple definitions. To fix it I make the definition of the non-static global variables in the correct c-files and only give the declarations to the header file (with extern). The inline functions are changed from extern inline to static inline to avoid the multiple definitions.