2011/9/23 Seçkin Can <[email protected]>: > Hi, i have a .a file and .h files, and i want to use that static library > in a dynamic library. i created a c++ dynamic library project in > netbeans. then with the path project>properties>build>linker, i added > the .a file with add library option. also added the folder of header > files to additional library directories option. then when i build the > whole project it's ok, but if i call any method from that .a file the > project can not be built. it give undefined reference to function that > i've called. how can i fix this? also i tried lots of commands with > command prompt still no result. > > Thanks, > > Seçkin Can
Hello Seçkin, Well I don't know anything about NetBeans, but as far as I know, DLLs are strictly a "C" calling convention thing. There is no concept of classes in a DLL. So, if the C++ compiler builds routine as part of a class it will mangle the names. I would suggest using DUMPBIN.EXE to see what routines are actually being exported from the DLL you are creating. You may find a bunch of mangled names, or you may not find much of any names at all. You need to add pragmas to each static member or C style globally-visible function that you wish to export. -- John. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ llrp-toolkit-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
