Errors

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

Errors

jeffrey
Dear all,

I downloaded a file named QuantLib-1.3 on quantlib web. The file contains codes, and I am trying to run  and to understand them. 

However, codes with the header .hpp are giving me the following error:

/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status.

I have attached the picture of my screen, maybe I am not running them properly.

Please I need your assistance, thanks in advance.

Jeffrey

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

Screenshot from 2014-02-01 09:40:26.png (166K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Errors

Luigi Ballabio
The files in QuantLib are part of a library, and are not supposed to
be compiled on their own. First, you have to compile the library; to
do that, run the commands

./configure
make
sudo make install

from the command prompt.
Then, you can link the library to your programs, where you'll define a
main(). There's a few examples of programs in the Examples directory,
in the release you downloaded. To link QuantLib to your program,
you'll do something like

g++ yourprogram.cpp -o yourprogram -lQuantLib

Luigi


On Sat, Feb 1, 2014 at 9:10 AM, Mbongo Nkounga Jeffrey Ted Johnattan
<[hidden email]> wrote:

> Dear all,
>
> I downloaded a file named QuantLib-1.3 on quantlib web. The file contains
> codes, and I am trying to run  and to understand them.
>
> However, codes with the header .hpp are giving me the following error:
>
> /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In
> function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: ld returned 1 exit status.
>
> I have attached the picture of my screen, maybe I am not running them
> properly.
>
> Please I need your assistance, thanks in advance.
>
> Jeffrey
>
> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends.  Skip the complicated setup - simply import
> a virtual appliance and go from zero to informed in seconds.
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users