static (2)
Zorro
zorro at zoooooro.pl
Tue Dec 4 01:43:50 PST 2007
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
More information about the wx-users
mailing list