From: <mi...@ca...> - 2003-05-21 21:19:02
|
Hello! I have a strange situation. I have this files in my project: 2003-05-21 20:51 31 365 test.cpp 2003-05-21 23:13 49 533 test.o 2003-05-21 23:13 499 876 test.dll 2003-05-21 23:13 4 452 libstdll.a 2003-05-12 15:05 87 test.def 2003-05-21 19:46 218 Makefile 2003-05-16 23:02 44 test.bat 2003-05-21 20:07 311 file.txt The problem is the really big dll file. I cant say what made the dll-file this big. It was something I did in the code that made it go from <100000 to 500000. When I strip this dll I get a file that is 245760 bytes big, but thats nothing compared to the small dll I had previously. (It was below 50k). This is my makefile, maybe there is a clue in here: all: g++ -c -DBUILD_DLL -fexceptions test.cpp -o test.o dllwrap --output-lib=libstdll.a --dllname=test.dll --driver-name=g++ --def=test.def --entry _DllMain --add_stdcall_alias test.o -lole32 -loleaut32 -lwsock32 Am I doing this in the right way? I cannot put the test.cpp file here, but since the compilation of it resulted in 49533 bytes, it feels very unlikely that the contents in the cpp-file can affect the dll size this much. The def-file however: EXPORTS DllRegisterServer DllUnregisterServer DllGetClassObject DllCanUnloadNow Any suggestions? What was magically causing this big dll size? Any comments appreciated! Maybe reinstalling mingw can be it? /Anders Lindén |