Author Topic: CodeBlocks compiling fail  (Read 30515 times)

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
CodeBlocks compiling fail
« on: January 03, 2012, 02:42:20 am »
I'm trying to compile the latest codeblocks source but I get this error :

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

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: CodeBlocks compiling fail
« Reply #1 on: January 03, 2012, 03:03:27 am »
OS?

Steps taken?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7600
    • My Best Post
Re: CodeBlocks compiling fail
« Reply #2 on: January 03, 2012, 03:03:43 am »
Your OS name and version?
wxWidgets version?

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #3 on: January 03, 2012, 03:10:21 am »
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 :
Code
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
« Last Edit: January 03, 2012, 03:19:49 am by je_rem_y »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7600
    • My Best Post
Re: CodeBlocks compiling fail
« Reply #4 on: January 03, 2012, 03:53:48 am »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #5 on: January 03, 2012, 04:17:20 am »
I installed wxWidgets from distro.

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #6 on: January 03, 2012, 04:42:35 am »
The problem come from this instruction : ifndef __WXMAC__

Code
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 ;)

Code
#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
« Last Edit: January 03, 2012, 05:06:37 am by je_rem_y »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7600
    • My Best Post
Re: CodeBlocks compiling fail
« Reply #7 on: January 03, 2012, 05:59:39 am »
Not a valid fix according to the 2007 thread.

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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CodeBlocks compiling fail
« Reply #8 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #9 on: January 03, 2012, 12:18:44 pm »
Not a valid fix according to the 2007 thread.

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

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #10 on: January 03, 2012, 12:26:20 pm »
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 ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks compiling fail
« Reply #11 on: January 03, 2012, 12:29:25 pm »
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!]

Offline polylux

  • Single posting newcomer
  • *
  • Posts: 7
Re: CodeBlocks compiling fail
« Reply #12 on: January 03, 2012, 03:16:44 pm »
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.

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #13 on: January 03, 2012, 04:58:36 pm »
I compile wxWidgets with this "--with-regex=builtin" and codeblocks compile.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks compiling fail
« Reply #14 on: January 03, 2012, 05:12:23 pm »
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!]