User forums > Using Code::Blocks
Can't compile cbprofilerexec.cpp (Gentoo)
(1/1)
IntergalacticWalrus:
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])'
--- End code ---
I used the ebuild and patch at 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...
pwuertz:
could you please post the output of:
--- Code: ---# wx-config --version-full
# wx-config-2.6 --version-full
--- End code ---
and tell me which use flags you used for wxGTK:
--- Code: ---# emerge -vp wxGTK
--- End code ---
IntergalacticWalrus:
`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".
TheTuxKeeper:
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
IntergalacticWalrus:
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.
Navigation
[0] Message Index
Go to full version