Author Topic: The 16 august 2006 build is out.  (Read 34445 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
The 16 august 2006 build is out.
« on: August 16, 2006, 09:02:26 pm »
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

A link to the unicode windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2.7z

For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10.7z

For support of ansi builds, a link to the ansi windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw26_gcc_cb_wx2.6.3p2.7z

The 16 August 2006 build is out.
  - Windows : http://prdownload.berlios.de/codeblocks/CB_20060816_rev2863_win32.7z
  - Linux :
         http://prdownload.berlios.de/codeblocks/CB_20060816_rev2863_Ubuntu6.06.deb
         http://prdownload.berlios.de/codeblocks/CB_20060816_rev2863_fc4+5.rpm (not yet)


Resolved Fixed:

  • codesnippets : autobuild tools and post build step to unix cbp
  • * Greatly improved/enhanced code-completion:
      C/C++ parser is much more accurate now.
      Code-completion proposals are much more correct, based on context.
      Functions implementation file and line are now correctly identified.
      Function arguments tooltips (a.k.a. calltips) are now updated dynamically, while typing, reducing the possible matches based on the number of already typed function arguments.
      Calltips highlight the current argument (only if one matching function signature because of a scintilla limitation).
      Improved "Go to declaration/implementation" functionality when right-clicking on a token in the editor.
    * Removed old (custom) code-completion control.
  • Fixed the #includes order in a couple of files. PCH must be the very first #included file...
  • fixed some pch/include conflicts
  • TODO plug-in : replaced combobox controls by choice controls
  • CB_Koders plugin: enable search for selection / word under cursor in editor (on right-click in active editor)
  • Correctly update class-browser when closing a project
  • Added support for virtual build targets. These are user-defined aliases that group together real build targets. For example, a well-known virtual target is "All". Configuration can be accessed from project properties, "Targets" page, "Virtual targets..." button.
    - SDK version changed to 1.9.0.
    - API change for cbProject::[Get|Set]ActiveBuildTarget().
    - API rename for cbProject::[Get|Set]DefaultExecuteTargetIndex (int) to cbProject::[Get|Set]DefaultExecuteTarget (wxString)

Regressions/Confirmed/Annoying/Common bugs:

  • toolbar-images-not-changing-state (is a wx problem/Win XP problem)
  • there are several issues with Code Completion (is being redesigned : work in progress)
  • menu items with icon not correctly aligned (since wx263)

« Last Edit: August 16, 2006, 11:51:48 pm by killerbot »

sethjackson

  • Guest
Re: The 16 august 2006 build is out.
« Reply #1 on: August 16, 2006, 09:12:30 pm »
Windows ANSI build is here.

Offline cstudent

  • Almost regular
  • **
  • Posts: 159
    • Cstudent's Help Desk
Re: The 16 august 2006 build is out.
« Reply #2 on: August 16, 2006, 09:36:12 pm »
What should be the correct member name?

compilergcc.cpp: In member function 'void CompilerGCC::OnSelectTarget(wxCommandE vent&)':
compilergcc.cpp:2754: error: 'class wxComboBox' has no member named 'GetCurrentSelection'



thanks,
cstudent

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: The 16 august 2006 build is out.
« Reply #3 on: August 16, 2006, 09:43:07 pm »
What should be the correct member name?

compilergcc.cpp: In member function 'void CompilerGCC::OnSelectTarget(wxCommandE vent&)':
compilergcc.cpp:2754: error: 'class wxComboBox' has no member named 'GetCurrentSelection'



thanks,
cstudent

probably GetSelection will be sufficient, since we need it as index, not as string

EDIT : platform independent my ... , on windows this builds, thanks wx

EDIT2 : in case of a choice it would have been ok (wxChoice::GetCurrentSelection)

EDIT 3 : on windows : wxComboBox derives from wxChoice (dunno for linux and others, should boot in linux for that) and on windows wxChoice has :
#if wxABI_VERSION >= 20602
    virtual int GetCurrentSelection() const;
#endif

EDIT 4 : on wxgtk (linux) : wx Choice also has :
#if wxABI_VERSION >= 20602
    virtual int GetCurrentSelection() const;
#endif

BUT wxComboBox is not derived from wxCoice BUT THEN AGAIN : wxComboBox has :
#if wxABI_VERSION >= 20602
    int GetCurrentSelection() const;
#endif

So I would say your are not wxABI_VERSION >= 20602 ...
« Last Edit: August 16, 2006, 10:09:52 pm by killerbot »

Last-Attacker

  • Guest
Re: The 16 august 2006 build is out.
« Reply #4 on: August 16, 2006, 10:01:55 pm »
Hey guys!
Excellent work on the code completion!
It works like... better than a dream! REALLY!

I mean, it actually determines the correct structural datatype and shows the list of its members and methods, and its complete list with inherited members and methods! In like a split second! BRILLIANT!
I also like the CallTip now. This app is starting to become more and more like VC++ but better IMHO!

Again! Very well done!

I honestly can't wait for RC3!

God Bless!

Tactive

  • Guest
Re: The 16 august 2006 build is out.
« Reply #5 on: August 16, 2006, 10:48:55 pm »
What do I have to do to use PCH file in my projects? I looked at the project properties and selected to generate the PCH file alongside original header files (default) but when I compile my project there won't be generated any file??

Offline marstell

  • Single posting newcomer
  • *
  • Posts: 8
  • Software Developer
    • www.marcostella.net
Re: The 16 august 2006 build is out.
« Reply #6 on: August 16, 2006, 11:11:12 pm »
A little bug: it seems that selecting the build target in the combobox or even in the menu, always the upper item is selected, not the one I've really selected...
Example:

if I have in this order:

- Build Target #1
- Build Target #2
- Build Target #3

if I select "Build Target #2", the "Build Target #1" is executed, and if I select "Build Target #3", the "Build Target #2" is executed.

It must be a very little mistake in some index, in one of the latest revisions.

Bye,

Marco Stella
Marco Stella, software developer
Visit www.marcostella.net
my personal site/blog about me, Linux, C++ and Qt4 programming..

Tactive

  • Guest
Re: The 16 august 2006 build is out.
« Reply #7 on: August 16, 2006, 11:29:05 pm »
I also reckognized this bug. In my projects I've three build targets (All / Debug / Release) but it doesn't compiles
what I selected (in the target selector in the toolbar). Sometimes it works correct but mostly it compiles other
targets.

It also effects the run option. I selected the debug target and he starts with the release version.....

Very confusing.....

Tactive

  • Guest
Re: The 16 august 2006 build is out.
« Reply #8 on: August 16, 2006, 11:35:07 pm »
After installing the nightly build I got several issues with my project header files. I've a header file called prerequisites.h which is beeing included
by each other header file. In each of my header files I use the new #pragma once statement instead of the old #ifndef/#define preprocessor
statements. Unfortunately I got an compiler error (segmentation) fault now in this header file and after changing it to the #ifndef/#define
statement it compiled fine.

So I would like to know if there's a workaround or if support for the (new) #pragma once statement ist beeing planned??

Kreso

  • Guest
Re: The 16 august 2006 build is out.
« Reply #9 on: August 16, 2006, 11:36:30 pm »
What should be the correct member name?

compilergcc.cpp: In member function 'void CompilerGCC::OnSelectTarget(wxCommandE vent&)':
compilergcc.cpp:2754: error: 'class wxComboBox' has no member named 'GetCurrentSelection'



thanks,
cstudent

probably GetSelection will be sufficient, since we need it as index, not as string

EDIT : platform independent my ... , on windows this builds, thanks wx

EDIT2 : in case of a choice it would have been ok (wxChoice::GetCurrentSelection)

EDIT 3 : on windows : wxComboBox derives from wxChoice (dunno for linux and others, should boot in linux for that) and on windows wxChoice has :
#if wxABI_VERSION >= 20602
    virtual int GetCurrentSelection() const;
#endif

EDIT 4 : on wxgtk (linux) : wx Choice also has :
#if wxABI_VERSION >= 20602
    virtual int GetCurrentSelection() const;
#endif

BUT wxComboBox is not derived from wxCoice BUT THEN AGAIN : wxComboBox has :
#if wxABI_VERSION >= 20602
    int GetCurrentSelection() const;
#endif

So I would say your are not wxABI_VERSION >= 20602 ...


yup, won't compile on my Linux box as well. any clues?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: The 16 august 2006 build is out.
« Reply #10 on: August 16, 2006, 11:50:44 pm »
use : GetSelection() on that offending line.

could you state which version of wx you are using ??

Kreso

  • Guest
Re: The 16 august 2006 build is out.
« Reply #11 on: August 17, 2006, 12:15:04 am »
2.6.1.2, the ones in ubuntu repos.

I'll go and download/compile the latest version

Offline Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: The 16 august 2006 build is out.
« Reply #12 on: August 17, 2006, 12:15:47 am »
Yellow boxes all over my screen! All my projects are older than the current save version. I got a messagebox for each of them, and then a screen full of yellow boxes (and they even spawned off the screen too!)  :lol:

Code
My Commit
void SpawnYellowBox(string message)
{
    DOSAttack("http:://www.codeblocks.org");
    return;
}
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

Offline cstudent

  • Almost regular
  • **
  • Posts: 159
    • Cstudent's Help Desk
Re: The 16 august 2006 build is out.
« Reply #13 on: August 17, 2006, 12:34:44 am »
Same here libwxgtk2.6-dev = 2.6.1  I think the additional .2 is a debian version number.

I've tried to download and compile 2.6.3. The compiling part goes fine and I have followed everything step in the Code::Blocks wiki, but I can never get this part to work.



Quote
Add /opt/wx/2.6/bin to the PATH (if you're shell is bash then edit /etc/profile or ~/.bash_profile) (On Suse 10.1 edit /etc/profile.local, it will only be available after a new login). an example PATH

export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH

Note: On Ubuntu Hoary it was necessary to check "Run command as login shell" in the gnome-terminal profile-settings, otherwise the PATH changes are not available in a gnome-terminal window.

add /opt/wx/2.6/lib to /etc/ld.so.conf (nano /etc/ld.so.conf) then run:

ldconfig
source /etc/profile

That's it. Now the linker will look in /opt/wx/2.6/lib for wx libraries and you will have a monolithic shared library unicode build.

To check that things are working, type:

wx-config --prefix

which should give you /opt/wx/2.6

wx-config --libs

which should have at least

-L/opt/wx/2.6/lib -lwx_gtk2-2.6

but can contain other flags as well.

which wx-config

should return /opt/wx/2.6/bin/wx-config



If you are able to get it to work, I sure would like to be clued in as to how. Edgy will have 2.6.3 available. I tried to install the .deb for it, but it screams for a bunch of other dependencies. Btw, I was able to build the .deb under edgy. Edgy will also be using gcc 4.1.


Edit: That last part maybe doesn't make sense. I tried to install libwxgtk2.6-dev from the Edgy repo on Dapper, but it wouldn't install without a bunch of additional dependencies. I didn't want to break my Dapper box, so I didn't continue with that idea. And I was able to build the Code::Blocks deb for Ubuntu I've been building on an Edgy box I have set up. I had to override the dependency for gcc 4.0 3 and compiled it using 4.1. I haven't really tested it beyond that point.
« Last Edit: August 17, 2006, 12:42:50 am by cstudent »

Kreso

  • Guest
Re: The 16 august 2006 build is out.
« Reply #14 on: August 17, 2006, 12:47:30 am »

If you are able to get it to work, I sure would like to be clued in as to how. Edgy will have 2.6.3 available. I tried to install the .deb for it, but it screams for a bunch of other dependencies. Btw, I was able to build the .deb under edgy. Edgy will also be using gcc 4.1.



I've downloaded 2.6.3 but I'll install it tommorow, it's way to late :)
Anyway, why all the extra config to get C::B work with 2.6.3?