tag:blogger.com,1999:blog-7571541.post8091152284081931370..comments2023-05-10T09:50:45.367-04:00Comments on The Rabbit Hole: Building w32 JNI DLLs with gcctechnomagehttp://www.blogger.com/profile/08018312109057235866noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7571541.post-57059552366550111252011-09-02T18:31:18.022-04:002011-09-02T18:31:18.022-04:00Thank you. This was a very helpful article that s...Thank you. This was a very helpful article that saved me a lot of time!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7571541.post-88901026920639581222009-10-08T11:01:06.017-04:002009-10-08T11:01:06.017-04:00excellent information. The linker option "-Wl...excellent information. The linker option "-Wl,--kill-at" is essential to avoid the UnsatisfiedLinkError Java exception because the built dll does not have the undecorated name of your C routine. That's a week of development time wasted finding THAT one. glAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7571541.post-65179291946169716232009-03-20T11:34:00.000-04:002009-03-20T11:34:00.000-04:00C++ by default mangles the exported function names...C++ by default mangles the exported function names. You need to place 'extern "C"' before any function you which to export without name mangling.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-19680710900365984712009-03-17T10:04:00.000-04:002009-03-17T10:04:00.000-04:00thank you for your blog. I successfully built C dl...thank you for your blog. I successfully built C dll <BR/>and used it with JNA. But I prefer using C++ so I changed from gcc to g++. dll is still generated but<BR/>JNA cannot find the procedure defined in dll.Frank Wanghttps://www.blogger.com/profile/02037198171567135861noreply@blogger.com