compiling Quantlib Eclipse with CDT 3.0.2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling Quantlib Eclipse with CDT 3.0.2

Joe Byers-2
I am trying to compile quantlib in eclipse using cdt 3.0.2.  I got quantlib to compile on another machine using CDT 2.x.x version

Now I get the following error in the make for the sobolrsg.cpp.

./ql/RandomNumbers/sobolrsg.o: In function `_ZN8QuantLib8SobolRsgC2EjmNS0_17DirectionIntegersE':
/cygdrive/c/dwork/workspace/Quantlib/Debug/../ql/RandomNumbers/sobolrsg.cpp:1276: undefined reference to `_PrimitivePolynomials'
/cygdrive/c/dwork/workspace/Quantlib/Debug/../ql/RandomNumbers/sobolrsg.cpp:1280: undefined reference to `_PrimitivePolynomials'
./ql/RandomNumbers/sobolrsg.o: In function `_ZN8QuantLib8SobolRsgC1EjmNS0_17DirectionIntegersE':
/cygdrive/c/dwork/workspace/Quantlib/Debug/../ql/RandomNumbers/sobolrsg.cpp:1276: undefined reference to `_PrimitivePolynomials'
/cygdrive/c/dwork/workspace/Quantlib/Debug/../ql/RandomNumbers/sobolrsg.cpp:1280: undefined reference to `_PrimitivePolynomials'
collect2: ld returned 1 exit status
make: *** [Quantlib.dll] Error 1

Any thoughts?

Thank you
Joe



A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
Reply | Threaded
Open this post in threaded view
|

RE: compiling Quantlib Eclipse with CDT 3.0.2

Cooperman, Ari
Joe,
 
I had this same issue... the quick fix is to change the extension on the file primitivepolynomials.c to .cpp. The default for C++ projects in CDT ignore C files. Alternatively you can change the C++ project settings to include.c files.
 
-Ari


From: [hidden email] [mailto:[hidden email]] On Behalf Of Joe Byers
Sent: Thursday, March 02, 2006 11:31 AM
To: [hidden email]
Subject: [Quantlib-users] compiling Quantlib Eclipse with CDT 3.0.2

I am trying to compile quantlib in eclipse using cdt 3.0.2.  I got quantlib to compile on another machine using CDT 2.x.x version

Now I get the following error in the make for the sobolrsg.cpp.

./ql/RandomNumbers/sobolrsg.o: In function `_ZN8QuantLib8SobolRsgC2EjmNS0_17DirectionIntegersE':
/cygdrive/c/dwork/workspace/Quantlib/Debug/../ql/RandomNumbers/sobolrsg.cpp:1276: undefined reference to `_PrimitivePolynomials'
/cygdrive/c/dwork/workspace/Quantlib/Debug/../ql/RandomNumbers/sobolrsg.cpp:1280: undefined reference to `_PrimitivePolynomials'
./ql/RandomNumbers/sobolrsg.o: In function `_ZN8QuantLib8SobolRsgC1EjmNS0_17DirectionIntegersE':
/cygdrive/c/dwork/workspace/Quantlib/Debug/../ql/RandomNumbers/sobolrsg.cpp:1276: undefined reference to `_PrimitivePolynomials'
/cygdrive/c/dwork/workspace/Quantlib/Debug/../ql/RandomNumbers/sobolrsg.cpp:1280: undefined reference to `_PrimitivePolynomials'
collect2: ld returned 1 exit status
make: *** [Quantlib.dll] Error 1

Any thoughts?

Thank you
Joe



A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.

------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
----------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.