On 5/17/05, Neil Williams <[EMAIL PROTECTED]> wrote:
> WRT to step 2, I can compile both scintilla and
> SciTE but can't link. The terminal output is:
> 
> $ make GTK1=1
> g++ `glib-config --libs gthread` -DGTK SciTEGTK.o
> SciTEBase.o SciTEBuffers.o SciTEIO.o Exporters.o
> MultiplexExtension.o DirectorExtension.o
> SciTEProps.o Utf8_16.o
> ../../scintilla/bin/scintilla.a LuaExtension.o
> IFaceTable.o lapi.o lcode.o ldebug.o ldo.o ldump.o
> lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o
> lparser.o lstate.o lstring.o ltable.o ltests.o
> ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o
> ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o
> loadlib.o -o ../bin/SciTE `gtk-config --libs`
> ld: warning suggest use of -bind_at_load, as lazy
> binding may result in errors or different symbols
> being used
> symbol _fnmatch used from dynamic library
> /Library/Frameworks/GTK.framework/GTK(single
> module) not from earlier dynamic library
> /usr/lib/libSystem.B.dylib(fnmatch.So)
> ld: Undefined symbols:
> _gdk_ic_attr_destroy
> _gdk_ic_attr_new
> _libiconv
> _libiconv_close
> _libiconv_open
> make: *** [../bin/SciTE] Error 1
> 
> Any hints, tips or words of encouragement would be
> much appreciated.

Well, the error says that some object file wants to use
gdk_ic_attr_destroy etc. but they're not present in any other object
file => link fails.

http://www.tmtm.org/cgi-bin/w3ml/sylpheed/msg/16948 (see responses in
the thread) might have a solution for the gdk_* problems.

As to libiconv missing - it looks like it doesn't link to libiconv at
all. I'm guessing `gtk-config --libs` should add -liconv (see what
gtk-config returns). You might try forcing linking to iconv library in
the makefile.

Hint: google is your friend:
http://www.google.com/search?q=gdk_ic_attr_destroy&start=0&start=0&ie=utf-8&oe=utf-8

Krzysztof Kowalczyk | http://blog.kowalczyk.info

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to