Author Topic: gnu/linux (gentoo) + gcc/g++3.3.6  (Read 7938 times)

basic

  • Guest
gnu/linux (gentoo) + gcc/g++3.3.6
« on: November 29, 2005, 09:52:23 am »
I've had trouble compiling svn trunk with gcc 3.3.6 (gentoo stable). Here's a patch of the changes I made to get compiling. The changes are for:
src/sdk/configmanager.cpp -- gcc 3.3.6 doesn't like wxString().Mid() ...
src/sdk/macrosmanager.h -- missing wx/filename.h include


[attachment deleted by admin]

basic

  • Guest
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #1 on: November 29, 2005, 10:08:18 am »
here's another patch. This one is for src/sdk/scriptingmanager.h #include <angelscript.h>. It causes problem when compiling src/src/app.cpp that #include <scriptingmanager.h> and can't find angelscript.h

[attachment deleted by admin]

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #2 on: December 02, 2005, 05:26:58 pm »
Oops, seems I put my 3 recent threads in the wrong forum.
Mine about the AngelScript issue: http://forums.codeblocks.org/index.php?topic=1528.0
Mine about the ConfigManager: http://forums.codeblocks.org/index.php?topic=1527.0
Mine about the missing includes: http://forums.codeblocks.org/index.php?topic=1530.0

Your angelscript fix may be better, I'm not sure.  I didn't try to compile the angelscript section with my fix.
I think my ConfigManager fix is better, for reasons made clear in the thread.
And I found 2 missing includes in addition to the wxFileName one.

Now we just need to keep poking them to get these applied 8)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #3 on: December 02, 2005, 06:23:30 pm »
Now we just need to keep poking them to get these applied 8)

How often do you update SVN? ;)
Be patient!
This bug will be fixed soon...

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #4 on: December 02, 2005, 11:06:48 pm »
Yay!  Thanks =)

* me goes off to finish the new codeblocks-svn ebuild

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #5 on: December 02, 2005, 11:50:27 pm »
Gah, you fixed it wrong :x

It now says:
configmanager.cpp: In member function `void ConfigManager::Read(const
   wxString&, ConfigManagerContainer::IntToStringMap*)':
configmanager.cpp:1133: error: call of overloaded `wxString(const char*)' is
   ambiguous
/usr/include/wx-2.6/wx/string.h:670: error: candidates are:
   wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:643: error:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx-2.6/wx/string.h:640: error:
   wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:632: error:
   wxString::wxString(int) <near match>


You changed it to:
wxString(curr->Value()).Mid(1).ToLong(&tmp);
which is wrong.  That kind of thing -- getting a wxString from tinyXML -- is precisely what _U() was added to do.  It works fine in non-unicode, because wxChar is a char, but in unicode it tries to make a wchar_t wxString from a char*, which it can't do without more help.

src/sdk/configmanager.cpp line 1133 should be
_U(curr->Value()).Mid(1).ToLong(&tmp);

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #6 on: December 03, 2005, 12:13:45 am »
Gah, you fixed it wrong :x

And is this a reason to be mad?
Try updating again...
Be patient!
This bug will be fixed soon...

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #7 on: December 03, 2005, 12:27:15 am »
Hmmm I'm starting to see a pattern here...

me22: GAH! A bug!
Mandrav: Fixed. Update your SVN.
me22: GAH! Your bugfix has a bug!
Mandrav: Fixed. Update your SVN.

Apologies to Ceniza for his 'i'm starting to see a pattern here' posts. :P

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #8 on: December 03, 2005, 01:03:12 am »
Deja vu
Life would be so much easier if we could just look at the source code.

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Re: gnu/linux (gentoo) + gcc/g++3.3.6
« Reply #9 on: December 03, 2005, 03:57:53 am »
Gah, you fixed it wrong :x

And is this a reason to be mad?
Try updating again...

It's no reason to be mad, just it makes it seem like you didn't read my rather detailed post about what needed to be changed and why.

Gah! It compiled now! :D

I've got the codeblocks-svn ebuild done too : http://bugs.gentoo.org/show_bug.cgi?id=89533 =)
« Last Edit: December 03, 2005, 05:31:30 am by me22 »