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, Felix > >> 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 >> Discuss-gnuradio@gnu.org >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio