Something wrong with my installation?
Martin Jørgensen
hotmail_spam at hotmail.com
Sun Nov 12 16:11:11 PST 2006
Aggro wrote:
> Martin Jørgensen wrote:
>
>> It seems like it doesn't like the const char's:
>
>
> Here is the suggested manual page:
> http://www.wxwidgets.org/manuals/2.6.3/wx_unicode.html
>
>> menuFile->Append( ID_About, "&About..." ); <<<<-- ERROR
>
>
> And the errors are fixed by adding _(), like this:
>
> menuFile->Append( ID_About, _("&About...") );
Aha... Thanks a lot to both of you... The error messages are down to 5
lines and I can also compile to get an object file (.o) - without
problems... But I can't get any executable, so it's probably just
something really simple I need to do...
Here's my output:
apple:~/Desktop/temp mac$ g++ test.o -o hello `wx-config --libs`
/usr/bin/ld: Undefined symbols:
typeinfo for wxListBase
typeinfo for wxApp
typeinfo for wxFrame
typeinfo for wxThread
collect2: ld returned 1 exit status
And here's how I get the object file:
apple:~/Desktop/temp mac$ g++ -c `wx-config --cxxflags` test.cpp
apple:~/Desktop/temp mac$ ls -l
total 152
-rw-r--r-- 1 mac mac 1505 Nov 13 00:55 test.cpp
-rw-r--r-- 1 mac mac 69400 Nov 13 01:04 test.o
g++ test.o -o hello `wx-config --libs` gives the same linker errors as
above... Hm.... I don't get it... AFAICS it doesn't work with g++ 4.01
from this thread:
http://groups.google.com/group/comp.soft-sys.wxwindows/browse_frm/thread/297f5ff955f39e4f/240f50fc6e72c3f7?lnk=st&q=usr%2Fbin%2Fld%3A+Undefined+symbols%3A+hello+world&rnum=4#240f50fc6e72c3f7
???
I don't think I have g++ 3.3 or something like that installed, so it
seems like I'm stuck again...
Best regards
Martin Jørgensen
--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
More information about the wx-users
mailing list