Jean-François Mertens wrote:
>
> On 01 Feb 2010, at 19:13, Robert Wyatt wrote:
>
>> Undefined symbols:
>> "_g_type_check_instance_cast", referenced from:
>> MyFrame::UpdateToolbar(ColorScheme) in chart1.o
>> "_gtk_widget_get_type", referenced from:
>> MyFrame::UpdateToolbar(ColorScheme) in chart1.o
>> "_gzclose", referenced from:
>> _zu_close in zuFile.o
>> "_gzopen", referenced from:
>> _zu_open in zuFile.o
>> "_gzread", referenced from:
>> _zu_read in zuFile.o
>> "_gzseek", referenced from:
>> _zu_seek in zuFile.o
>> _zu_seek in zuFile.o
>> "_gztell", referenced from:
>> _zu_seek in zuFile.o
>> _zu_seek in zuFile.o
>> "_gtk_widget_modify_bg", referenced from:
>> MyFrame::UpdateToolbar(ColorScheme) in chart1.o
>
> You need in addition "-lgtk-x11-2.0 -lgobject-2.0 -lz" in tis linking.
> (You can find this yourself using grep and nm)
>
> JF Mertens

Thank you Jean-François,

I know this tells me everything I should need to know, but even with the 
answer, I can't figure it out (I guess it's time I picked up C++ for 
dummies!).

I try something along these lines:

nm -o /usr/lib/* | grep gzseek

and get something like this:

/usr/lib/libz.dylib: 0000000000007d87 T _gzseek

So I think that is where you get "-lz" and I'm sure there's something 
similar for "-lgtk-x11-2.0 and "-lgobject-2.0" but I'm not at all sure 
which directory I should be looking in for those.

Anyhow, I do appreciate your help.

I suppose the next step is to patch the source file with a patch script 
in my info file so the linker calls those files. I'm still muddling 
about trying to figure out how best to do that.

Best regards,
Robert

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to