Cliffwolf
Cliffwolf

Reputation: 85

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?

Upvotes: 2

Views: 2895

Answers (1)

anon
anon

Reputation:

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?

Upvotes: 1

Related Questions