Disclaimer: c/c++ as well as hdf newbie there

I'm not sure at all, but this looks like you are mixing c runtime libs
in VS configuration, you might want to check the project properties in
VS:

Configuration Properties > C/C++ > Code Generation > Runtime Library

you have to use the same runtime library that was used to compile the
.lib you are linking

On Thu, Mar 11, 2010 at 1:35 AM, Mersmann Sven
<[email protected]> wrote:
> Error   1       error LNK2005: __invalid_parameter_noinfo already defined in 
> MSVCRT.lib(MSVCR90.dll)    LIBCMT.lib      mitkHDF5
> Error   3       fatal error LNK1169: one or more multiply defined symbols 
> found C:\Home\Mersmann\Bug-Squashing\MITK-Bin\mitk\bin\Release\mitkHDF5.dll   
> mitkHDF5
>
>
> Hi Mike,
> those are the exact linker errors appearing when I use the exact same 
> settings as in debug mode, ignoring the libcmt.lib brings the following 
> errors:
>
> Error   1       error LNK2019: unresolved external symbol _timezone 
> referenced in function _H5O_mtime_decode    hdf5.lib        mitkHDF5
>
> Error   2       error LNK2001: unresolved external symbol _timezone     
> OLDNAMES.lib    mitkHDF5
>
> Error   3       error LNK2001: unresolved external symbol __timezone    
> OLDNAMES.lib    mitkHDF5
>
> Error   4       fatal error LNK1120: 2 unresolved externals     
> C:\Home\Mersmann\Bug-Squashing\MITK-Bin\mitk\bin\Release\mitkHDF5.dll   
> mitkHDF5
>
> The oldnames.lib is not available on my system.
>
> I'm really grateful for your help!
>
> Best Regards
> Sven
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:[email protected]] 
> Im Auftrag von Mike Jackson
> Gesendet: Mittwoch, 10. März 2010 02:57
> An: Mailing list for users to discuss HDF issues with each other
> Betreff: Re: [Hdf-forum] Linker error in release mode
>
> Can you post the exact linker errors?
> _________________________________________________________
> Mike Jackson                  [email protected]
> BlueQuartz Software                    www.bluequartz.net
> Principal Software Engineer                  Dayton, Ohio
>
> On Tue, Mar 9, 2010 at 7:14 PM, Mersmann Sven
> <[email protected]> wrote:
>>
>>
>> Hey everyone,
>>
>> I'm new with the HDF5 - lib and first of all I' m quite enlighted by the
>> offered possibilities. Nevertheless I experienced a problem I can't fix
>> myself: When running the HDF5-lib in release mode I get some unresolved
>> externals. I excluded libc.lib and libcmt.lib but there are still some
>> unresolved symbols. I'm using HDF5-lib with zlib and szip on MSVS2008.
>>
>> Any help is gratefully welcome!
>>
>>
>>
>> Best wishes
>>
>> Sven
>>
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> [email protected]
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>>
>>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to