Link error 1104 in release mode

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

Link error 1104 in release mode

Lapin
Hi,

I am using QL as a library in another one.
I can compile QL in both release and debug mode.
When I want to compile my second lib, I get the following result:

1- Both in Debug -> no pb
2- Both in Release - > ERROR LNK1104 - cannot open file 'QuantLib-vc80-mt-0_8_1.lib'
3- my lib in Debug, QL in Release -> OK but crash at running.

Does anyone have any idea how to solve this issue?
I am trying to improve perf, so if I can not compile in Release, it is useless....

Cheers
Reply | Threaded
Open this post in threaded view
|

Re: Link error 1104 in release mode

Luigi Ballabio
Bonjour Guillaume,

On Thu, 2007-12-13 at 09:43 -0800, Yomi wrote:
> I am using QL as a library in another one.
> I can compile QL in both release and debug mode.
> When I want to compile my second lib, I get the following result:
>
> 2- Both in Release - > ERROR LNK1104 - cannot open file
> 'QuantLib-vc80-mt-0_8_1.lib'

It seems that the "Release" configuration in your library corresponds to
"Release CRTDLL" in QuantLib. To synchronize the two, you can either:
- rename the configuration for your library;
- open the settings for your library project, go to "C/C++ - Code
generation" and select "Multi-threaded (/MT)".

Luigi


--

Brady's First Law of Problem Solving:
When confronted by a difficult problem, you can solve it more
easily by reducing it to the question, "How would the Lone
Ranger have handled this?"



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users