Hi Andrew,
I only have this on Cygwin currently, and i have no idea how to solve it there.
The approach i had sofar was changing the order of the libraries.
E.g you enable CMAKE_VERBOSE_MAKEFILE (advanged values toggle in ccmake).
This generates makefile that spit out all that is happening.
Next compile a sample and/or lib, and copy paste the linking of the sample in an
editor. Change the order of linking and see if it helps.
I always much suprized to see that gcc works on say Fedora, but on other
platforms it has those weird linking errors.
I will check fedore compilation to see if all is still oke.
One thing for sure, it is best to only have one wxWidgets installed, and best
the static version with debug. Else it is even possible that a mix of dynamic
and static libs is used to link.
Also start with the simple samples. e.g. disable the applications in apps
directory (dlete lines or outcomment ). Or go into test directory, and make
there. Less dependencies is easier to solve. e.g. samples/artbase or
samples/docview.
Fiddle around (outcomment) with smrtptr.h
inline Clss *operator->() const { /* !!!!! a throw on 0 should go here */
return m_ptr; }
inline Clss &operator*() const { /* !!!!! a throw on 0 should go here */
return *m_ptr; }
see what happens.
Hope it helps.
But in the end it is not the code, but the compilers/linkers which cause these
problems. Drives me crazy!
Regards,
Klaas
Andrew Dowsey wrote:
I¹m trying to compile wxArt2D on Mac OSX Leopard 10.5.6. After a minor
problem finding malloc.h, the sample applications will not link because of
duplicate symbols:
ld: duplicate symbol a2dSmrtPtr<a2dDocumentCommandProcessor>::operator
a2dDocumentCommandProcessor*() constin
CMakeFiles/mars.dir/src/document.cpp.o and
CMakeFiles/mars.dir/src/docframe.cpp.o
collect2: ld returned 1 exit status
I¹ve tried the stock Apple gcc 4.0.1, and the updated Apple gcc 4.2.1. I¹ve
tried wxMac and wxGTK (2.84), building wxWidgets static and shared, unicode
and ansi, release and debug builds, all with the same eventual problem.
For example, the output of Œmake¹ with wxGTK, ansi, release, static is
available here:
http://vip.doc.ic.ac.uk/awd97/make1.out
http://vip.doc.ic.ac.uk/awd97/make2.out
What should I try next? I¹m committed to getting this working, as I¹ve
recently changed from a Windows to Mac laptop and I really need to develop
this on it!
With thanks for a great library.
--
Unclassified
------------------------------------------------------------------------------------------------------------
Disclaimer:
If you are not the intended recipient of this email, please notify the sender and delete it.
Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden.
Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s).
Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------
begin:vcard
fn:Klaas Holwerda
n:Holwerda;Klaas
note:Unclassified
version:2.1
end:vcard
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev