[CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread Benjamin Ruard
Hi everybody, I use CMake to wrap a c++ library in Java with swig. When I use linux OS it works very well, but when I use windows OS there is a problem. Indeed, the compilation works fine but the dll has not the correct method/fonction inside. After several researches on the web I find I must use

Re: [CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread David Cole
Are you sure you don't just need an: extern C { } block around a function implemented in a C++ file...? On Thu, Aug 4, 2011 at 7:30 AM, Benjamin Ruard ru...@artenum.com wrote: Hi everybody, I use CMake to wrap a c++ library in Java with swig. When I use linux OS it works very well, but when

Re: [CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread Benjamin Ruard
Thanks for your answer, but The block: extern C { ... } already exists. Regards. Benjamin JEANTY-RUARD Le jeudi 04 août 2011 à 08:40 -0400, David Cole a écrit : Are you sure you don't just need an: extern C { } block around a function implemented in a C++ file...? On Thu, Aug 4,