LINK : fatal error LNK1104: Datei "QuantLib-vc80-mt-gd-0_8_0.lib" cannot be opened

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

LINK : fatal error LNK1104: Datei "QuantLib-vc80-mt-gd-0_8_0.lib" cannot be opened

Christoph.OBENHUBER

Hello,

As you might recognize in a second I am new to quantlib ;-)
I do not really get the point concerning this FAQ topic: In which directory should this file "QuantLib-vcX-xx-xxx-a_b_c.lib" be ? Actually I am not quite sure what is meant by "building Quantlib QuantLib-vcX-xx-xxx-a_b_c.lib".
By the way does anybody know if there is a step by step manual "how to install quantlib" for C++ Visual Express 2005 ?

Best regards,
Christoph


1>------ Erstellen gestartet: Projekt: makros, Konfiguration: Debug Win32 ------
1>Verknüpfen...
1>LINK : fatal error LNK1104: Datei "QuantLib-vc80-mt-gd-0_8_0.lib" cannot be opened
1>Das Buildprotokoll wurde unter "file://c:\C\makros\makros\Debug\BuildLog.htm" gespeichert.
1>makros - 1 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========


5.1. I cannot link QuantLib to my project under Visual C++
If you're encountering the linking error
   LINK : fatal error LNK1104: cannot open file "QuantLib-vcX-xx-xxx-a_b_c.lib"
   
the folder including QuantLib-vcX-xx-xxx-a_b_c.lib is not in your link path (See the menu Property Pages | Linker | Input) or you haven't really built QuantLib-vcX-xx-xxx-a_b_c.lib yet. Note that each build configuration produces a different library.

http://www.oevag.com/disclaimer
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: LINK : fatal error LNK1104: Datei "QuantLib-vc80-mt-gd-0_8_0.lib" cannot be opened

Luigi Ballabio
On Mon, 2007-06-11 at 19:59 +0200, [hidden email]
wrote:
> I do not really get the point concerning this FAQ topic: In which
> directory should this file "QuantLib-vcX-xx-xxx-a_b_c.lib" be ?
> Actually I am not quite sure what is meant by "building
> QuantLib-vcX-xx-xxx-a_b_c.lib".

The xxx,a,b,c are variables. In your case, the above is
QuantLib-vc80-mt-gd-0_8_0.lib  (X = 80, a = 0 etc.) We were trying to
write the FAQ for a generic library name.


> 1>LINK : fatal error LNK1104: Datei "QuantLib-vc80-mt-gd-0_8_0.lib"
> cannot be opened

As it says in the FAQ,

> the folder including QuantLib-vcX-xx-xxx-a_b_c.lib is not in your link
> path (See the menu Property Pages | Linker | Input) or you haven't
> really built QuantLib-vcX-xx-xxx-a_b_c.lib yet. Note that each build
> configuration produces a different library.

When you build QuantLib, a library was created in QuantLib-0.8.0/lib. If
QuantLib-vc80-mt-gd-0_8_0.lib is there, you have to tell your compiler
to look into that directory. If it's not there and there's another one
instead, you have built QuantLib in some other configuration (Release or
something) and you have to change the configuration of your project to
match.

Later,
        Luigi

----------------------------------------

Matz's Law:
A conclusion is the place where you got tired of thinking.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users