> Are you trying to export all symbols from a shared library, something that > emulates Unix linkers behavior (Microsoft linker has no option for it=?
Yes. > > If it is so, then you can create a static library first. Then add custom > command that e.g runs dumpbin with you static library to extract symbols > and produces .DEF (for example using a script like this one > http://kenai.com/projects/mysql-jvm/sources/source/content/win/create_def_fi > le.js?rev=25 ). Finally, to produce DLL, use a dummy source file , and > your generated .DEF and link the DLL to the static library, like > > ADD_LIBRARY(mydll SHARED dummy.c generated.def) > TARGET_LINK_LIBRARIES(mydll staticlib) I have done what you proposed and works fine if I use the static library. Unfortunately the utility I use to extract the symbols, which is orders of magnitude faster than anything based on dumpbin, works at the level of the object files. This is why I am interested to get the list of them. ------------------------------------------------------------- Pere Mato CERN, PH Department, CH 1211 Geneva 23, Switzerland e-mail: pere.m...@cern.ch tel: +41 22 76 78696 fax: +41 22 76 68792 gsm: +41 76 48 70855 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake