gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > linking with g++

#10624 - TheGreenFalcon - Thu Sep 11, 2003 12:43 am

In fact i'm trying to link the APEX library(audio library)
with my C++ code, but i can't have it working.
The errors are about undefined symbol from this library.

I'm using devkitadv.
It seems to work well when it is "C" code linked
with gcc, but if i try to link this same "C" code using g++,
i got errors.

... so the problem is when linking with g++ only.


do u have an idea about my problem?

Thkx
_________________
--
----------------------------
..:: TheGreenFalcon :: ..
----------------------------

#10625 - TheGreenFalcon - Thu Sep 11, 2003 1:05 am

...well i find what was wrong
(the problem was already presented in another topic
in fact)

it's just that the header doesn't support C++
so i had to add a little extern "C"
_________________
--
----------------------------
..:: TheGreenFalcon :: ..
----------------------------