static (2)
Riccardo Cohen
rcohen at articque.com
Tue Dec 4 02:14:51 PST 2007
I think that you've got 2 versions of wxwidgets on your system, one is
unicode (gtk2u) and the other is not, depending on what option you set,
gcc use the good or the bad one. check that.
Zorro wrote:
> Milan Babuskov pisze:
>> Zorro wrote:
>>> I download latest version compile with static options
>>> And now i compile my program
>>>
>>> g++ -Wall -o prog `../wx-config --cxxflags --libs` prog.cpp
>>>
>>> not working
>> That's 'very' descriptive. Maybe I should take a look at my crystal ball
>> to see how exactly it is not working?
>
> ok.
> I would like to compile my program on specific options with library
> wxWidgets. (static) In my system this options not working. But I can't
> remove this version.
>
> I dowload new version. compile it. with wx-config from
> /home/users/wxGTK-2.8.7
>
> $ make
> g++ -Wall -o pr `/home/users/wxGTK-2.8.7/wx-config --cxxflags --libs`
> prog.cpp
> prog.cpp: In member function 'virtual bool MyApp::OnInit()':
> prog.cpp:46: error: conversion from 'const char [14]' to 'const
> wxString' is ambiguous
> /home/users/wxGTK-2.8.7/include/wx/string.h:692: note: candidates are:
> wxString::wxString(wxChar, size_t) <near match>
> /home/users/wxGTK-2.8.7/include/wx/string.h:682: note:
> wxString::wxString(int) <near match>
> prog.cpp: In constructor 'MyTreeCtrl::MyTreeCtrl(wxWindow*, wxWindowID,
> const wxPoint&, const wxSize&, long int)':
> prog.cpp:74: error: no matching function for call to
> 'wxString::Printf(const char [3], const char [5])'
> /home/users/wxGTK-2.8.7/include/wx/string.h:1203: note: candidates are:
> int wxString::Printf(const wxChar*, ...)
> prog.cpp:76: error: invalid use of undefined type 'struct wxImageList'
> /home/users/wxGTK-2.8.7/include/wx/generic/listctrl.h:16: error: forward
> declaration of 'struct wxImageList'
> prog.cpp:77: error: invalid use of undefined type 'struct wxImageList'
> /home/users/wxGTK-2.8.7/include/wx/generic/listctrl.h:16: error: forward
> declaration of 'struct wxImageList'
> prog.cpp:77: error: conversion from 'const char [6]' to 'const wxString'
> is ambiguous
> /home/users/wxGTK-2.8.7/include/wx/string.h:692: note: candidates are:
> wxString::wxString(wxChar, size_t) <near match>
> /home/users/wxGTK-2.8.7/include/wx/string.h:682: note:
> wxString::wxString(int) <near match>
> prog.cpp:78: error: invalid use of undefined type 'struct wxImageList'
> /home/users/wxGTK-2.8.7/include/wx/generic/listctrl.h:16: error: forward
> declaration of 'struct wxImageList'
> prog.cpp:78: error: conversion from 'const char [6]' to 'const wxString'
> is ambiguous
> /home/users/wxGTK-2.8.7/include/wx/string.h:692: note: candidates are:
> wxString::wxString(wxChar, size_t) <near match>
> /home/users/wxGTK-2.8.7/include/wx/string.h:682: note:
> wxString::wxString(int) <near match>
> prog.cpp: In member function 'void MyTreeCtrl::OnSelChanged(wxTreeEvent&)':
> prog.cpp:92: error: cannot convert 'const wchar_t*' to 'const char*' for
> argument '1' to 'int printf(const char*, ...)'
> make: *** [all] Error 1
> _____________
>
> the prog.cpp is simple.
>
> When I use normal wx-config it working propertly. I can't "make
> install". I must use only my own version of wxwidgets
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
--
Très cordialement,
Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
More information about the wx-users
mailing list