User forums > Nightly builds
The 08 March 2007 build is out.
Biplab:
--- Quote from: watt on March 09, 2007, 05:35:09 pm ---today i install this version in my pc(windows) ... but i can't build my projects.
appear this error:
Release:
mingw32-g++.exe -L\usr\lib -L"C:\Program Files\CodeBlocks\lib" -o bin\Release\Game.exe obj\Release\main.o -s -lglut -lGL -lGLU -lXxf86vm -mwindows
ld: crt2.o: No such file: No such file or directory
--- End quote ---
Are you using RC2?? If yes, please download a latest nightly.
The error however says that MinGW runtime libraries are missing. Install them and that will solve your problem.
Regards,
Biplab
Biplab:
--- Quote from: yuku on March 09, 2007, 05:53:36 pm ---Thanks! That gave me a new light!
But I'm really a newbie in C++ and C::B IDE, can you point me how to do that? I looked up through the project options but cannot find any.
--- End quote ---
Goto Project>Build options menu, you'll see a Combo says Compiler settings. Select that and you'll find Linker settings option; select it. Now you'll see Link libraries listbox. Add the libraries there by clicking the Add button below.
Regards,
Biplab
yuku:
There was no wxpng.lib, wxjpeg.lib files, so I added libwxjpeg.a and libwxpng.a instead.
It then complains about some TIFF library and deflate something.. so I added libwxtiff.a and libwxzlib.a and it now compiles correctly and I can run it!
However the resulting exe file is 2.8 MB, after UPX 856 KB.
I read at http://www.wxwidgets.org/wiki/index.php/Reducing_Executable_Size that unused library should be out,
the TIFF library alone is 300 KB. I suppose that adding the 4 .a files means that png,jpeg,tiff,zlib is included in the exe file
which means bigger exe size, am I right? I think the wizard should be able to exclude it (?)
Again, thanks for your assistance!
Biplab:
--- Quote from: yuku on March 09, 2007, 06:13:24 pm ---However the resulting exe file is 2.8 MB, after UPX 856 KB.
I read at http://www.wxwidgets.org/wiki/index.php/Reducing_Executable_Size that unused library should be out,
the TIFF library alone is 300 KB. I suppose that adding the 4 .a files means that png,jpeg,tiff,zlib is included in the exe file
which means bigger exe size, am I right? I think the wizard should be able to exclude it (?)
--- End quote ---
Wizard can't help you in this regard. The problem is even for the basic app, it needs them. The whole library is not linked, though. Only necessary portion of code are added by linker.
Wizard adds bare minimum lib required in each configuration. In your case, it's a monolithic build and therefore you are virtually adding all of them.
If you want to reduce executable size, go for VC. It'll give you reduced binary size.
Regards,
Biplab
watt:
--- Quote from: Biplab on March 09, 2007, 05:54:14 pm ---
--- Quote from: watt on March 09, 2007, 05:35:09 pm ---today i install this version in my pc(windows) ... but i can't build my projects.
appear this error:
Release:
mingw32-g++.exe -L\usr\lib -L"C:\Program Files\CodeBlocks\lib" -o bin\Release\Game.exe obj\Release\main.o -s -lglut -lGL -lGLU -lXxf86vm -mwindows
ld: crt2.o: No such file: No such file or directory
--- End quote ---
Are you using RC2?? If yes, please download a latest nightly.
The error however says that MinGW runtime libraries are missing. Install them and that will solve your problem.
Regards,
Biplab
--- End quote ---
its de nightly and i install MinGW-5.1.3.exe
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version