Re: Compiling error
Kevin Ingwersen <ingwie2000-gM/[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey.
Yes, now it compiled - i have a usable dillo binary in src/
Thank you very much =).
Maybe a short macro for what you did could be used.
#ifdef __APPLE__
// this is visible
int verb() { return 1; }
#endif
This worked in a test compile - i used gcc -E.
Regards,
Ingwie
Am 20.11.2013 um 21:40 schrieb Johannes Hofmann <[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-macosx.diff>_______________________________________________
> Dillo-dev mailing list
> [email protected]
> http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev