User forums > Using Code::Blocks
How to use dllwrap with code blocks?
(1/1)
Haziq999:
Hi, I was trying to prevent the linker from exporting all symbols from my dll. I found a solution at this link: http://stackoverflow.com/questions/2810118/how-to-tell-the-mingw-linker-not-to-export-all-symbols.
As you can see, I need to use dllwrap with code blocks.
Is that possible?
Please help.
oBFusCATed:
Yes you can call dllwrap as a post build step (but if you read carefully the comment mentioning it - it is deprecated/non supported from 2006 onwards).
But you're not reading: http://stackoverflow.com/questions/2810118/how-to-tell-the-mingw-linker-not-to-export-all-symbols/2812162#2812162
So making a DLL without exported functions is useless, why would you want to do so?
Haziq999:
I have found that mingw exports every function from the dll, even the functions that are not protyped with __declspec(dllexport) and without using a .def file. This means that even the functions that you want to use locally in the dll are exported. That is the problem. See this link for details:
http://stackoverflow.com/questions/5040342/my-dll-is-exporting-every-function-without-my-consent
Could you please guide me on how to use dllwrap through the post build script? Thanks.
Navigation
[0] Message Index
Go to full version