Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: IntergalacticWalrus on January 04, 2006, 02:30:54 am

Title: Can't compile cbprofilerexec.cpp (Gentoo)
Post by: IntergalacticWalrus on January 04, 2006, 02:30:54 am
I'd really like to try Code::Blocks, but so far I'm unable to compile it. I get
Code
cbprofilerexec.cpp: In member function `void CBProfilerExecDlg::WriteToFile(wxCommandEvent&)':
cbprofilerexec.cpp:286: error: no matching function for call to `wxFFile::wxFFile(const wxChar*, const wchar_t[2])'
I used the ebuild and patch at http://bugs.gentoo.org/show_bug.cgi?id=89533 (http://bugs.gentoo.org/show_bug.cgi?id=89533). I also posted a detailed output of the error at the same bug, but it's been days and nobody has answered yet, so I'm hoping I'd get more feedback here...
Title: Re: Can't compile cbprofilerexec.cpp (Gentoo)
Post by: pwuertz on January 05, 2006, 06:31:37 am
could you please post the output of:

Code
# wx-config --version-full
# wx-config-2.6 --version-full

and tell me which use flags you used for wxGTK:

Code
# emerge -vp wxGTK
Title: Re: Can't compile cbprofilerexec.cpp (Gentoo)
Post by: IntergalacticWalrus on January 05, 2006, 06:53:04 am
`wx-config-2.6 --version-full` returns 2.6.2.1 and `wx-config --version` returns 2.4.2 (--version-full was not a valid parameter for wx-config).

My x11-libs/wxGTK-2.6.2-r1 is compiled with USE="X joystick opengl sdl unicode -debug -doc -gnome -odbc".
Title: Re: Can't compile cbprofilerexec.cpp (Gentoo)
Post by: TheTuxKeeper on January 05, 2006, 05:53:07 pm
When you want to compile the svn version you need wxGTK 2.6. You installed it, but ./configure uses wx-config by default. The problem is that wx-config is symlinked to wxGTK 2.4.2.

You can do one (or more) of these things to solve the problem:
1. change the symlink, so that wx-config points to wx-config-2.6
2. you run ./configure with --with-wx-config=/path/to/wx-config-2.6
3. perhaps removing wxGTK 2.4.2, if also installed could do the same

Daniel
Title: Re: Can't compile cbprofilerexec.cpp (Gentoo)
Post by: IntergalacticWalrus on January 06, 2006, 01:21:13 am
You were right, it used the wx-config from 2.4.x. I thought the ebuild checked that but it was only the svn ebuild that did it correctly. Anyway I uploaded the fix to the bug, if anyone's interested.

Thanks.