简体   繁体   中英

Export function in c++ static library

My app links to a third party static library which without source code and I find that a function implemented in this library is exported in my exe using dumpbin.exe, just like a export function in a DLL. I have tried to modify the header file provided by the library, got rid of all the __declspec(dllexport) stuffs, and relink my app, but the function is still exported. Does it have a way to make it unexported?

No. You will have to recompile the library itself, changing the header will not affect the library binary code. What problems is the exported function causing you?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM