Author Topic: The 08 March 2007 build is out.  (Read 28793 times)

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 08 March 2007 build is out.
« Reply #15 on: March 09, 2007, 05:54:14 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

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
Be a part of the solution, not a part of the problem.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 08 March 2007 build is out.
« Reply #16 on: March 09, 2007, 05:58:25 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.

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
Be a part of the solution, not a part of the problem.

yuku

  • Guest
Re: The 08 March 2007 build is out.
« Reply #17 on: March 09, 2007, 06:13:24 pm »
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!

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 08 March 2007 build is out.
« Reply #18 on: March 09, 2007, 06:21:11 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 (?)

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
Be a part of the solution, not a part of the problem.

watt

  • Guest
Re: The 08 March 2007 build is out.
« Reply #19 on: March 09, 2007, 06:28:36 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

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
its de nightly and i install MinGW-5.1.3.exe
« Last Edit: March 09, 2007, 06:31:49 pm by watt »

yuku

  • Guest
Re: The 08 March 2007 build is out.
« Reply #20 on: March 09, 2007, 06:30:17 pm »
I recompiled wxWidgets with MONOLITHIC=0 and made a new project in C::B. but the resulting exe size is still the same.
Any way to exclude those unneeded library?

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 08 March 2007 build is out.
« Reply #21 on: March 09, 2007, 06:39:35 pm »
Actually the exe size does not depend on Monolithic or Non-monolithic configurations. The actual amount of basic wx code added will remain same. :)

@watt

You install MinGW Runtime Library to avoid that error.

Regards,

Biplab

Be a part of the solution, not a part of the problem.

Offline saddam le pion

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: The 08 March 2007 build is out.
« Reply #22 on: March 09, 2007, 06:42:15 pm »
To fix the menu alignment bug introduced in wx 2.6.3 [windows only bug] we have patched wx ourselves, and that results in the following alternative dll : http://prdownload.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch_version3.7z

I downloaded it, extract the file and put it in the same directory as codeblocks.exe, but nothing happens: the bug is still there.
What is the next step?

Silly question, but did you open the .7 archive and use it instead of the normal lib?

That's what i did, with no success, on my PC with XP Home. I tried at work on a temporary PC with XP Pro, with success.
So there seems to be a difference between the different versions of XP :?:
« Last Edit: March 09, 2007, 06:44:58 pm by saddam le pion »

watt

  • Guest
Re: The 08 March 2007 build is out.
« Reply #23 on: March 09, 2007, 06:47:54 pm »
Actually the exe size does not depend on Monolithic or Non-monolithic configurations. The actual amount of basic wx code added will remain same. :)

@watt

You install MinGW Runtime Library to avoid that error.

Regards,

Biplab



the MinGW Runtime Library have a exe ??... how to install ??

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 08 March 2007 build is out.
« Reply #24 on: March 09, 2007, 07:01:22 pm »
@watt,

Download it from:
Quote
http://prdownloads.sourceforge.net/mingw/mingw-runtime-3.11.tar.gz?download

Extract the contents to C:\MinGW folder. That's it. :)

@yuku

I've updated the wizard. Now you won't to add additional libraries them manually. :)

Thanks for the feedback.

Regards,

Biplab
Be a part of the solution, not a part of the problem.

watt

  • Guest
Re: The 08 March 2007 build is out.
« Reply #25 on: March 09, 2007, 07:06:52 pm »
Biplab
i make this, but dont resolve the errors

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 08 March 2007 build is out.
« Reply #26 on: March 09, 2007, 07:34:50 pm »
Can you compile a simple console program? Where did you install MinGW?
Be a part of the solution, not a part of the problem.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: The 08 March 2007 build is out.
« Reply #27 on: March 09, 2007, 07:35:27 pm »
@watt: please start a new topic for any problem you have. This topic is the announcement of a nightly, not support for it.
Be patient!
This bug will be fixed soon...

watt

  • Guest
Re: The 08 March 2007 build is out.
« Reply #28 on: March 09, 2007, 07:40:51 pm »
Can you compile a simple console program? Where did you install MinGW?

no how can compile ??? i will open a new topic in help