Re: Compiling error
Johannes Hofmann <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Nov 20, 2013 at 05:06:11PM +0100, Kevin Ingwersen wrote: > Hey. > > Now that FLTK is up and working…this happens: > > g++ -I/Applications/drag0n/drag0n.app/Contents/System/usr/local/include -I/Applications/drag0n/drag0n.app/Contents/System/usr/local/include/FL/images -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -g -O2 -Wall -W -Wno-unused-parameter -fno-rtti -fno-exceptions -L/usr/local/lib -o dillo dillo.o paths.o tipwin.o ui.o uicmd.o bw.o cookies.o auth.o md5.o digest.o colors.o misc.o history.o prefs.o prefsparser.o keys.o url.o bitvec.o klist.o chain.o utf8.o timeout.o dialog.o web.o nav.o cache.o decode.o dicache.o capi.o domain.o css.o cssparser.o styleengine.o plain.o html.o form.o table.o bookmark.o dns.o gif.o jpeg.o png.o imgbuf.o image.o menu.o dpiapi.o findbar.o xembed.o ../dlib/libDlib.a ../dpip/libDpip.a IO/libDiof.a ../dw/libDw-widgets.a ../dw/libDw-fltk.a ../dw /libDw-core.a ../lout/liblout.a -L/Applications/drag0n/drag0n.app/Contents/System/usr/local/lib -lfltk -lpthread -framework Cocoa -lz -liconv > duplicate symbol __ZN10Fl_Printer8class_idE in: > ../dw/libDw-fltk.a(libDw_fltk_a-fltkplatform.o) > /Applications/drag0n/drag0n.app/Contents/System/usr/local/lib/libfltk.a(Fl_Printer.o) > ld: 1 duplicate symbol for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see invocation) > make[3]: *** [dillo] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > /Applications/drag0n/drag0n.app/Contents/System includes a copy of my toolchain, also meaning FLTK and others. > > What can I do to get rid of this duplicate error? From what I know, a function was declared twice somewhere, but then again I did not study the source code ^^. Could you try with attached little patch? Cheers, Johannes _______________________________________________ Dillo-dev mailing list [email protected] http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
dillo-macosx.diff
(text/x-diff, 552 B)
diff -r d2e186d591c6 dw/fltkplatform.cc
--- a/dw/fltkplatform.cc Sun Nov 03 12:38:57 2013 +0100
+++ b/dw/fltkplatform.cc Wed Nov 20 21:38:58 2013 +0100
@@ -32,6 +32,7 @@
* Local data
*/
+#if 0
/* Use of Fl_Text_Display links in a lot of printer code that we don't have
* any need for currently. This stub prevents that. */
class FL_EXPORT Fl_Printer : public Fl_Paged_Device {
@@ -40,6 +41,7 @@
Fl_Printer(void) {};
};
const char *Fl_Printer::class_id = "Fl_Printer";
+#endif
/* Tooltips */
static Fl_Menu_Window *tt_window = NULL;