[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] CMake/SWIG build problems

From: wunsch
Subject: Re: [Discuss-gnuradio] CMake/SWIG build problems
Date: Thu, 16 Aug 2012 00:13:27 +0200
User-agent: SquirrelMail/1.4.19

Hi Josh,

That hint with the visibility option solved all my problems. I commented
it out in the CMakeLists.txt and the undefined symbols were gone. Thank
you so much!

Best regards,

>> It compiles without any errors or warnings, but when I try to import my
>> module, I get "undefined symbol" errors. I looked at the swig shared
>> library file using "nm" and noticed that I have lots of undefined
>> symbols in the part that contains my former drm_init module. The C++
>> shared library seems fine, so I guess it's a SWIG problem.
> You probably have some class or function thats defined in a header and
> either missing from the library or not exported. SWIG basically uses all
> of the functions/classes you feed it. So anything missing, so long as it
> was defined in a header you fed to swig, is going to be heard about when
> you import the module.
> Are you compiling with -fvisibility=hidden? you need to declare any
> public symbols to be default visibility
> http://gcc.gnu.org/wiki/Visibility
> Just a guess,
> -josh
>> I would really appreciate it if somebody could give me a hint how I can
>> configure CMake / SWIG correctly. The current (working) configuration
>> can be found on github.com/fewu. The custom make file can be found under
>> misc/, the other in the swig/ folder.
>> Best regards,
>> Felix
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

reply via email to

[Prev in Thread] Current Thread [Next in Thread]