Re: Problem compiling QuantLib 1.2 test suite in VS 10

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Problem-compiling-QuantLib-1-2-test-suite-in-VS-10-tp276p279.html

I see.  That's the first I heard of it.
Well, thanks for the heads-up.

Luigi

On Fri, Mar 9, 2012 at 9:12 PM, Smith, Dale <[hidden email]> wrote:

> To build the test suite on x64 in Windows Vista in VS 2010, I had to change to header-only Boost.Test, which uses the header file
>
> #include <boost/test/included/unit_test.hpp>
>
> I was able to build the examples in the same configuration with no problems at all.
>
> Thanks,
> Dale Smith, Ph.D.
> Senior Financial Quantitative Analyst
> Risk & Compliance
> Fiserv.
> 107 Technology Park
> Norcross, GA 30092
> Office: 678-375-5315
> Mobile: 678-982-6599
> Mail: [hidden email]
> www.fiserv.com
>
> -----Original Message-----
> From: Luigi Ballabio [mailto:[hidden email]]
> Sent: Thursday, March 08, 2012 10:08 AM
> To: Smith, Dale
> Cc: [hidden email]
> Subject: Re: [Quantlib-users] Problem compiling QuantLib 1.2 test suite in VS 10
>
> I've built the test suite in VC10, but in win32 mode.  I haven't heard of problems yet with x64.
> Also, the main for the test suite is provided by the boost.test library.  Is your machine configured correctly on that front?
>
> Later,
>    Luigi
>
>
> On Thu, Mar 8, 2012 at 4:04 PM, Smith, Dale <[hidden email]> wrote:
>> My error is in the linker step. The QuantLib libraries are built properly.
>> I'm compiling Debug/Release for x64. The error for both is
>>
>>
>>
>> LNK2019: unresolved external symbol MAIN__ referenced in function main
>> C:\Tools\QuantLib-1.2\test-suite\libf2c.lib(main.obj)
>>
>>
>>
>> I did some googling around and found a stackoverflow web page
>> suggesting I undef main, but that didn't work. Are there any reported
>> problems with the test suite? If not, it's my configuration, although
>> I've checked the link properties for the test suite to make sure the libraries are found.
>>
>>
>>
>> Thanks,
>>
>> Dale Smith, Ph.D.
>>
>> Senior Financial Quantitative Analyst
>>
>> Risk & Compliance
>>
>> Fiserv.
>>
>> 107 Technology Park
>>
>> Norcross, GA 30092
>>
>> Office: 678-375-5315
>>
>> Mobile: 678-982-6599
>>
>> Mail: [hidden email]
>>
>> www.fiserv.com
>>
>>
>>
>>
>> ----------------------------------------------------------------------
>> -------- Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing also
>> focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> QuantLib-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users