Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Compiling the recent revisions on Linux
Der Meister:
There is a small patch necessary to build revision 1946 and newer on Linux:
--- Code: ---Index: src/src/app.cpp
===================================================================
--- src/src/app.cpp (revision 1951)
+++ src/src/app.cpp (working copy)
@@ -534,7 +534,7 @@
#ifdef __WXMSW__
wxICON(A_MAIN_ICON),
#else
- wxIcon(app)
+ wxIcon(app),
#endif // __WXMSW__
_("Building ") + wxFileNameFromPath(wxString(argv[argc-1])));
--- End code ---
thomas:
Applied, thank you.
yop:
Revision 1952 (yeah I'm the one with the outdated gcc that doesn't support pch):
--- Code: (diff) ---Index: src/sdk/blockallocated.cpp
===================================================================
--- src/sdk/blockallocated.cpp (revision 1952)
+++ src/sdk/blockallocated.cpp (working copy)
@@ -13,6 +13,7 @@
#include <sdk_precomp.h>
#ifndef CB_PRECOMP
+ #include "wx/regex.h"
#include "blockallocated.h"
#endif
Index: src/sdk/projectoptionsdlg.cpp
===================================================================
--- src/sdk/projectoptionsdlg.cpp (revision 1952)
+++ src/sdk/projectoptionsdlg.cpp (working copy)
@@ -32,7 +32,8 @@
#include "projectmanager.h"
#include "compilerfactory.h"
#include "globals.h"
-
+ #include "scriptingmanager.h"
+
#include <wx/xrc/xmlres.h>
#include <wx/treectrl.h>
#include <wx/spinctrl.h>
--- End code ---
Also I get the following when building cclistctrl.cpp from codecompletion plugin that I wasn't able to solve :(
../../../src/sdk/blockallocated.h: In destructor `BlockAllocator<T, pool_size, debug>::~BlockAllocator() [with T = CodeBlocksEvent, unsigned int pool_size = 75, bool debug = false]':
../../../src/sdk/blockallocated.h:140: instantiated from here
../../../src/sdk/blockallocated.h:85: error: `_U' undeclared (first use this
function)
thomas:
Fixed both in 1953. :)
EDIT:
Oh by the way, you *really* want to use a more recent compiler.
I compiled wxWidgets on Ubuntu using gcc 4 the other day, and it took only 4 minutes.
Compiling wxWidgets on Windows using gcc 3.4.4 on the very same machine takes about 25 minutes...
If there is no other reason to use a more recent compiler, then I'd say this is one 8)
yop:
--- Quote from: thomas on February 06, 2006, 08:10:29 pm ---Oh by the way, you *really* want to use a more recent compiler.
--- End quote ---
I 'll change my linux distro (decided to drop Suse) so I won't bother updating right now. But even if I do who 'll provide you with the info for compilers that don't support pch? :lol:
Navigation
[0] Message Index
[#] Next page
Go to full version