[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: libart_lgpl 2.3.18+ breaks kdelibs3
From:       Laurent Montel <lmontel () mandriva ! com>
Date:       2007-03-01 16:18:20
Message-ID: 200703011718.20995.lmontel () mandriva ! com
[Download RAW message or body]

On Thursday 01 March 2007, Michael Nottebrock wrote:
> When linking libkdecore, this happens now:
>
> ./.libs/libkdecore.so: undefined reference to `art_alloc(unsigned int)'
> ./.libs/libkdecore.so: undefined reference to `art_free(void*)'
> ./.libs/libkdecore.so: undefined reference to `art_realloc(void*, unsigned
> int)'
>
> Does anyone have a workaround/patch?

Yes:

- libart_lgpl-2.3.19/art_misc.h.extern-c      2007-01-02 00:59:22.000000000 
+0100
+++ libart_lgpl-2.3.19/art_misc.h       2007-03-01 09:19:06.000000000 +0100
@@ -34,9 +34,15 @@
 #include <libart_lgpl/art_config.h>
 #endif

+#ifdef __cplusplus
+extern "C" {
+#endif
 void *art_alloc(size_t size);
 void art_free(void *ptr);
 void *art_realloc(void *ptr, size_t size);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */

 /* These aren't, strictly speaking, configuration macros, but they're
    damn handy to have around, and may be worth playing with for
~
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic