Bengt Nilsson ha scritto:
>>> -lwxart2d_macud_aggdrawer-2.8
>>> -lwxart2d_macud_curves-2.8 -lwxart2d_macud_editor-2.8
>>> -lwxart2d_macud_canextobj-2.8 -lwxart2d_macud_canvas-2.8
>>> -lwxart2d_macud_artbase-2.8 -lwxart2d_macud_docview-2.8
>>> -lwxart2d_macud_svgio-2.8 -lwxart2d_macud_gdsio-2.8
>>> -lwxart2d_macud_xmlparse-2.8 -lwxart2d_macud_general-2.8 -lkbool
>>> -lantigrain -lexpat -L/opt/local/lib -framework QuickTime -framework
>>> IOKit -framework Carbon -framework Cocoa -framework System
>>> -lwx_macud_stc-2.8 -lwx_macud-2.8 -lpng -lz -ljpeg -ltiff -framework
>>> WebKit -lwxregexud-2.8 -lpthread -liconv -lwxart2d_macud_editor-2.8
>>> -lwxart2d_macud_canvas-2.8 -lwxart2d_macud_xmlparse-2.8
>> the order of the libs is not perfect here: the wxart2d_* libs must  
>> _all_ come
>> before the wx_* ones.
>> If you haven't already tried, remove the _editor, the _canvas, the  
>> _xmlparse libs
>> (which are duplicated from those above).
> 
> I will try it, but is this really the cause of all this?
no, probably no. However the linker is really one of the most obscure source of 
error messages in Unix-like development platforms.... so, who knows :)

>>> /usr/bin/ld: multiple definitions of symbol
>>> a2dSmrtPtr<a2dMultiSelectGroup>::PointerListInit()
>>> CMakeFiles/mars.dir/src/docframe.o definition of
>>> a2dSmrtPtr<a2dMultiSelectGroup>::PointerListInit()         in section
>>> (__TEXT,__text)
>>> CMakeFiles/mars.dir/src/document.o definition of
>>> a2dSmrtPtr<a2dMultiSelectGroup>::PointerListInit()         in section
>>> (__TEXT,__text)
>> it looks like both docframe.o and document.o contain the definition of
>> a2dSmrtPtr<a2dMultiSelectGroup>::PointerListInit.
>>
>> You can use "nm" on these object files to check if "it's true"...
> 
> It really contains a lot of stuff
> 
> nm docframe.o | grep a2dSmrtPtr
use "nm -C" when trying to understand C++ linker errors ;)

Some explanation about nm's output is here:
    http://www.hmug.org/man/1/nm.php   (nm man page for mac I think)

We are interested to the "T" = the symbol is defined in the object file and to 
the "U" = the symbol is used by this object file but not defined there.

Some help can be found at: 
http://tldp.org/HOWTO/Program-Library-HOWTO/miscellaneous.html


>>
>>> ..and so on a few thousand lines.
>> all about multiple definitions? and all about templates ?
> 
> all about definitions, I searched for the word "template" in the  
> terminal text mass and go no hit.
templates are those "things" containing angle brackets: < > so you should do a

grep -v "\<"   logfile_of_linker

to see if there are multiple defined symbols which are not related to 
templates....


Francesco




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to