Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
I have recently installed QuantLib and am trying to compile the AmericanOption.cpp example. There doesn't appear to be a makefile for the g++. I've tried to build one myself, however I keep getting thousands of undefined referencej errors. Any attempt to reuse the bcc makefile results in "Missing Separator" errors. Is there a makefile available for the g++ compiler?
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Hi Kristian,
The supplied makefile actually is a GNU makefile. For some strange reason a line required to define the 'all' target is commented out though. You have two easy options to get the example going. 1. Use the command "make examples" instead of "make" and this will go straight to the relevant target. 2. Look inside the makefile and find the line that looks like: #bin_PROGRAMS = AmericanOption$(EXEEXT) Remove the comment (# sign) and it should work with just plain make. You can use the same approach to compile all the other examples as well. Cheers, David. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
On 03/01/05 22:27:47, [hidden email] wrote:
> I have recently installed QuantLib and am trying to compile the > AmericanOption.cpp example. There doesn't appear to be a makefile for > the g++. I've tried to build one myself, however I keep getting > thousands of undefined referencej errors. Any attempt to reuse the bcc > makefile results in "Missing Separator" errors. Is there a makefile > available for the g++ compiler? Kristian, what platform are you on? If linux or unix, as David pointed out, "make examples" will compile AmericanOption as well as all the others. If you're using g++ on Windows, there's no Makefile currently available; but the example can be built simply with: g++ AmericanOption.cpp -lQuantLib -L/path/where/libQuantLib/is Hope this helps, Luigi ---------------------------------------- fix, n.,v. What one does when a problem has been reported too many times to be ignored. -- the Jargon file |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
In reply to this post by kristian_johnson
Thanks David. It turns out that my biggest problem is that the Makefile didn't exist on my system for some reason. Either the configure didn't run properly the first time or I deleted it somehow. I reran configure and the gnu Makefile appeared. From there, your changes worked great.
-------------- Original message -------------- ... [show rest of quote]
|
Free forum by Nabble | Disable Popup Ads | Edit this page |