further along, but still having problems with using wxMac 2.6.3 as static libraries

Dave & Diane daveanddiane at kringlecottage.com
Wed Nov 1 21:10:08 PST 2006


Chris,

I saw the hot key problems also.

If I remember correctly, what I did was change include/wx/setup.h. It 
has wxUSE_HOTKEY set to 1 even though the comment says windows only.

Hope this helps.

Dave


Chris Perkins wrote:

> I'm trying to link my current universal binary project against wxMac 
> 2.6.3 and have been running into problems.
>
> I've built wxMac 2.6.3 using the command line:  ../configure 
> --disable-shared --enable-universal_binary
> That seemed to go ok, but I got errors in my code when I would attempt 
> to #include "wx/wx.h".   I've since defined __WXMAC__ and  
> HAVE_SSIZE_T  in my project before including the wxWidgets header and 
> that clears up the compiling problem I was having earlier today.
>
>
> So, now I'm just having trouble linking.  I have added these static 
> libraries to my project:
>
>     libwx_base_carbon_xml-2.6a 
>     libwx_base_carbon_net-2.6a 
>     libwx_base_carbon-2.6a 
>     libwxexpat-2.6a 
>     libwx_mac_qa-2.6a 
>     libwx_mac_adv-2.6a 
>     libwx_mac_core-2.6a 
>     libwx_mac_html-2.6a 
>     libwx_mac_media-2.6a 
>     libwxjpeg-2.6a 
>     libwxpng-2.6a 
>     libwxtiff-2.6a 
>
> This is pretty much the list of _all_ the static libraries that were 
> built.
>
> In my XCode project, if I try to build an i386 Target then these two 
> come up as undefined symbols during the link phase:
>          wxWindowBase::RegisterHotKey(int, int, int)
>          wxWindowBase::UnregisterHotKey(int)
>
>
> But, If I try to build a PPC Target, or a Universal Binary Target, 
> then I get a massive list of undefined symbols - probably every symbol 
> defined by wxWidgets that my project uses.
>
>
> I'm sure I'm making some elementary mistake, but XCode and modern Mac 
> programming are foreign to me.  What am I doing wrong? What steps do I 
> need to undertake?
>
> Thanks,
>
> Chris Perkins
>
>
>
>
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org For 
> additional commands, e-mail: wx-users-help at lists.wxwidgets.org 



-- 

Diane & Dave
http://www.velvetstarbears.com/  http://www.kringlecottage.com/
Fortune: The difference between America and England is that the
English think 100 miles is a long distance and the Americans
think 100 years is a long time.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20061101/73f15a6d/attachment.htm


More information about the wx-users mailing list