Posted by
Andreas Spengler-2 on
Feb 18, 2009; 4:03pm
URL: http://quantlib.414.s1.nabble.com/Compilation-problems-with-SUN-CC-tp12581.html
Hi,
I am trying to compile Quantlib on SUN Solaris 10 using SUN CC (I tried
v5.7, v5.8 and v5.10, btw...)
Appearantly the SUN compiler is somehow missing operator== implementations
for e.g. ExchangeRateManager, because I get the following error:
libtool: compile: CC -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/home/spenglan/local/include/boost-1_38
-erroff=wvarhidemem,hidevf,hidevfinvb,wbadinitl,badargtypel2w -errtags=yes
-KPIC -features=rtti -template=wholeclass -instances=global -g -xs -fast
-library=rwtools7,iostream,no%stlport4,Crun -xarch=v8plusa -fsimple=1 -mt
-Drindex=rindex -Dindex=index -D__solaris_sparc__ -O3 -c
exchangeratemanager.cpp -KPIC -DPIC -o .libs/exchangeratemanager.o
"/home/spenglan/SUNWspro/prod/include/CC/Cstd/./list.cc", line 173: Error,
badbinaryop: The operation "QuantLib::ExchangeRateManager::Entry == const
QuantLib::ExchangeRateManager::Entry" is illegal.
"/home/spenglan/SUNWspro/prod/include/CC/Cstd/./list", line 468:
Where, temwhileinst: While instantiating
"std::list<QuantLib::ExchangeRateManager::Entry>::remove(const
QuantLib::ExchangeRateManager::Entry&)".
"/home/spenglan/SUNWspro/prod/include/CC/Cstd/./list", line 468:
Where, teminstend: Instantiated from non-template code.
1 Error(s) detected.
Perhaps I am using a bad compiler switch.
When I add an operator== in Quantlib::ExchangeRateManager::Entry (doing
memberwise comparison), I get the same error above for
Quantlib::ExchangeRateManager
This can't be correct that the compiler does not generate implicit
operator== methods himself, right?
Rgds,
Andreas
------------------------------------------------------------------------------
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_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev