Hi,

Bengt Nilsson ha scritto:
> I got further when I commented out the wxICON line.
> But I saw this in docview.cpp:
> // Include icon header
> #if defined(__WXGTK__) || defined(__WXMOTIF__)
>    #include "mondrian.xpm"
> #endif
> 
> Should there be a || __WXMAC__ also?
yes

> Or am I expected to have __WXGTK__?
no


> Anyway, I got more errors:
> Linking CXX executable mars
> cd /Users/bnilsson/Programming/OpenSource/wxArt2Dbuild/apps/mars && 
> /opt/local/bin/cmake -P CMakeFiles/mars.dir/cmake_clean_target.cmake
> cd /Users/bnilsson/Programming/OpenSource/wxArt2Dbuild/apps/mars && 
> /usr/bin/c++     -headerpad_max_install_names -fPIC 
I see you're compiling in shared mode... try to build wxWidgets and then 
wxArt2d 
in static mode...

> "CMakeFiles/mars.dir/src/docframe.o" 
> "CMakeFiles/mars.dir/src/document.o" "CMakeFiles/mars.dir/src/docv.o" 
> "CMakeFiles/mars.dir/src/elements.o" 
> "CMakeFiles/mars.dir/src/mastertool.o" 
> "CMakeFiles/mars.dir/src/object.o" "CMakeFiles/mars.dir/src/page.o" 
> "CMakeFiles/mars.dir/src/part.o" "CMakeFiles/mars.dir/src/view.o"   -o 
> mars  -L/Users/bnilsson/Programming/OpenSource/wxArt2Dbuild/lib 
> -L/opt/local/bin/../lib 
> -L/Users/bnilsson/Programming/OpenSource/wxArt2Dbuild/lib/ 
> -L/opt/local/lib -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, move the _editor, the _canvas, the _xmlparse libs 
(which are duplicated from those above).

> /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"...


> ..and so on a few thousand lines.
all about multiple definitions? and all about templates ?

HTH,
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