Quantlib with .Net managed code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Quantlib with .Net managed code

Ken Goodhew
Hi,
I'm trying to integrate Quantlib 0.3.8 into an existing Visual studio
.Net solution, and I'm not having much luck.
I've been able to compile the Quantlib project in Debug, Release,
ReleaseMTDLL, etc with no problems and run all the tests.

I've created a C++ .Net class library project called MyTest (which
should produce a managed dll).
I added the following lines to my header file
#include <ql/quantlib.hpp>
using namespace QuantLib;

When I build, I get the following message:
Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification
LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
referenced in function _mainCRTStartup
C:\Program Files\QuantLib\Debug\MyTest.dll : fatal error LNK1120: 1
unresolved externals

I suppose I can live with the warning, but I can't figure out how to
eliminate the link error.

Thanks,
Ken


kgoodhew.vcf (308 bytes) Download Attachment