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

Mike Jackson imikejackson at gmail.com
Tue Mar 6 22:03:14 EST 2007


moving up to CMake 2.4.6 solved the problem.
--  
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Mar 6, 2007, at 8:35 PM, Christian Marshall Rieck wrote:

>> 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