User forums > Using Code::Blocks
DLL Exported function list - is too exhaustive - things I don't want in there!
adder6:
Out of interest here are the commands CB is issuing to the compiler/linker (I can never tell which it is).
--- Code: ---mingw32-g++.exe -shared -Wl,--output-def=bin\Debug\libtest.dll.def -Wl,--out-implib=bin\Debug\libtest.dll.a -Wl,--dll obj\Debug\example_dll.o -o bin\Debug\test.dll
--- End code ---
I'm really not sure which part is responsible for causing all contained items in the object file to be exported. I'll do some more research and return. I couldn't interestingly find the command --dll in the GCC documentation. Maybe I'm looking at an incorrect version of the manual. Anyways I'll reply if I can find anymore useful information.
** I also noticed this command here:
--- Code: ---mingw32-g++.exe -Wall -DBUILD_DLL -g
--- End code ---
But even when compiling with that BUILD_DLL flag removed it still does it. I think maybe now it is best to avoid worrying about this and just accepting it. I wouldn't think that given the C++ name mangling any of those unwanted exported functions would ever be called anyway :D
stahta01:
--- Code: ----Wl,
--- End code ---
Hint: The above means send the option to the linker.
(Binutils linker might be which linker it means; I really can not remember which linker it goes to.)
Tim S.
oBFusCATed:
ld (gnu default linker) or gold (also named ld)...
adder6:
Thanks for the repliec chaps but I think it's probably time to move on anyway. It's not a critical problem just something that would have been better without. I may yet return to it but after studying GCC manual and looking at the complete full command line output it seems the compiler is paying no attention whatsoever to the .DEF file attached to the project. Even if those Wl options can be changed I still believe this will just export everything no matter what, and nothing CB can do about that seems to be the way the linker & compiler are setup.
Thanks anyway :D
adder6:
I have now solved this problem, at least it appears that way for now. If anyone is interested or you think it might be useful please say so on this topic and I will post steps showing exactly how I did it. Many thanks :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version