[Insight-users] optimized.lib on MS VS 2003 .NET

Christian Marshall Rieck rieck at stud.ntnu.no
Tue Mar 6 20:35:13 EST 2007


> I am trying to compile up a release version of my code. I used CMake
> to generate the VS2003 project and when the linker tries to link, the
> linker cannot find "optimized.lib"
>   I have searched my system and the file is nowhere to be found. I am
> a bit new to VS2003 (usually on a Unix machine) so any insight into
> this would be great.
>   I thought I installed the full MS VS 2003 .Net product but could I
> have missed something?

I had the same problem a couple of weeks ago. A search on google gave me 
this:

http://mail.kde.org/pipermail/kde-windows/2007-January/000640.html

from the link:
>> QT_QTMAIN_LIBRARIES:
>> optimized;optimized;N:/Qt/4.2/lib/qtmain.lib;debug;N:/Qt/4.
>> 2/lib/qtmaind.lib;debug;N:/Qt/4.2/lib/qtmaind.lib
>>
>> There is one optimized that shouldn't be there and cmake expands it to
>> optimized.lib. I cannot find where QT_QTMAIN_LIBRARIES is filled. It
>> looks like not in kdelibs. However, according to cmake documentation
>> there is QT_QTMAIN_LIBRARY variable. Any idea how to fix it?

>From this I concluded that optimized.lib was not supposed to be there and 
I removed in from the include settings in VS2003. After this, it compiled 
and linked nicely. The few times I have run the program after this, it has 
worked perfectly. But I cant guarantee there is no bug somewhere as a 
result.

Christian.

 > > Thanks
> -- 
> Mike Jackson
> imikejackson _at_ gee-mail dot com
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> 


More information about the Insight-users mailing list