News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

CodeBlocks compiling fail

Started by je_rem_y, January 03, 2012, 02:42:20 AM

Previous topic - Next topic

je_rem_y

I'm trying to compile the latest codeblocks source but I get this error :

macrosmanager.cpp: In member function 'void MacrosManager::Reset()':
macrosmanager.cpp:90:33: error: 'wxRE_ADVANCED' was not declared in this scope

Alpha


stahta01

Your OS name and version?
wxWidgets version?

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

je_rem_y

#3
OS : Arch linux
wxWidgets : 2.8.12

Steps taken :
mkdir ~/devel
cd ~/devel
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk
cd trunk
./bootstrap
./configure
make <-- error

I also tried with the aur repo of arch (https://aur.archlinux.org/packages.php?ID=18493) with the same error (it try to compile from the latest source too)

Version 7174 compile but with this command ./configure --with-contrib-plugins=all I get this error with 7174 :
Expressions.h:87:5: error: 'wxRE_ADVANCED' was not declared in this scope
Expressions.h:103:5: error: 'wxRE_ADVANCED' was not declared in this scope

stahta01

Self built wxWidgets or installed from distro?

In 2007, this problem was caused by not using "--with-regex=builtin" when building wxWidgets on Linux.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

je_rem_y

I installed wxWidgets from distro.

je_rem_y

#6
The problem come from this instruction : ifndef __WXMAC__

macrosmanager.cpp:90:33: error: 'wxRE_ADVANCED' was not declared in this scope

__WXMAC__ is for mac no ? If I replace wxRE_ADVANCED by wxRE_EXTENDED to test, it compile ;)

#ifndef __WXMAC__
                               wxRE_ADVANCED);
#else
                               wxRE_EXTENDED);
#endif
   m_RE_To83Path.Compile(_T("\\$TO_83_PATH{([^}]*)}"),
#ifndef __WXMAC__
                               wxRE_ADVANCED);
#else
                               wxRE_EXTENDED);
#endif
   m_RE_RemoveQuotes.Compile(_T("\\$REMOVE_QUOTES{([^}]*)}"),
#ifndef __WXMAC__
                               wxRE_ADVANCED);
#else
                               wxRE_EXTENDED);
#endif

stahta01

Not a valid fix according to the 2007 thread.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

thomas

No need to "fix" the code. You're using an outdated, broken wxWidgets build which was configured --with-regex=system. This is a known Arch Linux thing, and has been fixed in the mean time. Just upgrade.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

je_rem_y

Quote from: stahta01 on January 03, 2012, 05:59:39 AM
Not a valid fix according to the 2007 thread.

Tim S.
I know it is not a valid fix, it was to test ;)

je_rem_y

Quote from: thomas on January 03, 2012, 10:43:16 AM
No need to "fix" the code. You're using an outdated, broken wxWidgets build which was configured --with-regex=system. This is a known Arch Linux thing, and has been fixed in the mean time. Just upgrade.
I use the latest and only version from the arch repo. So what I have to do ? Compile wxWidgets myself ? Install wxWidgets 2.9.2 from aur repo ?

oBFusCATed

C::B is not usable at the moment with wx2.9...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

polylux

Quote from: thomas on January 03, 2012, 10:43:16 AM
No need to "fix" the code. You're using an outdated, broken wxWidgets build which was configured --with-regex=system. This is a known Arch Linux thing, and has been fixed in the mean time. Just upgrade.

I got the same problem, doesn't seem there's a "fix-through-upgrade" available yet.

je_rem_y

I compile wxWidgets with this "--with-regex=builtin" and codeblocks compile.

oBFusCATed

The only thing you could do is to report a bug to the maintainers of wxGTK in Arch.
Building separate version of wxgtk is a workaround with high maintenance cost.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]