[Top][All Lists]

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

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

From: Josh Blum
Subject: Re: [Discuss-gnuradio] CMake/SWIG build problems
Date: Tue, 14 Aug 2012 10:46:19 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0

> 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

Just a guess,

> 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]