Build Errors...

Hello All,

I just downloaded HDF5 1.8 and went through the INSTALL_Windows.txt file to
get started. I get through to Install section 4.1 (Using Visual Studio
2005) and get 300 + build errors. Out of curiosity I checked to see if some
of the files actual got built. HDf5d.lib does, but HDFd5dll.lib does not.
Upon attempting to build just that project, the error I get is "fatal error
LNK1104: cannot open file 'LIBC.lib'." Any suggestions as to why this
happens, or to fix it?

Thanks,

John

Hi

check if the property "runtime library" under C/C++/code generation is
Singlethreaded Debug DLL. If so, change it to multithreaded Debug DLL. I
assume that if you try to use that hdf5d.lib you'll get the same lnk error
when trying to link. If this is the problem, FYI MS dropped single threaded
libraries beginning from VS2005

http://msdn2.microsoft.com/en-us/library/ms235505(VS.80).aspx

HTH

-- dimitris

···

2008/2/21, John D. Marinuzzi <nuzzi@nuzzi.net>:

Hello All,

I just downloaded HDF5 1.8 and went through the INSTALL_Windows.txt file
to get started. I get through to Install section 4.1 (Using Visual Studio
2005) and get 300 + build errors. Out of curiosity I checked to see if some
of the files actual got built. HDf5d.lib does, but HDFd5dll.lib does
not. Upon attempting to build just that project, the error I get is "fatal
error LNK1104: cannot open file 'LIBC.lib'." Any suggestions as to why
this happens, or to fix it?

Thanks,

John

--
- What is the difference between mechanical engineers and civil engineers?
Mechanical engineers build weapons civil engineers build targets.
- Good health is merely the slowest possible rate at which one can die.
- Life is like a jar of jalapeño peppers. What you do today, might Burn Your
Butt Tomorrow

Hi John,

Which platform are you using? XP or vista? 32-bit or 64-bit? Have you included all the external libraries correctly?

Kent
Dimitris Servis wrote:

···

Hi

check if the property "runtime library" under C/C++/code generation is Singlethreaded Debug DLL. If so, change it to multithreaded Debug DLL. I assume that if you try to use that hdf5d.lib you'll get the same lnk error when trying to link. If this is the problem, FYI MS dropped single threaded libraries beginning from VS2005

http://msdn2.microsoft.com/en-us/library/ms235505(VS.80).aspx <http://msdn2.microsoft.com/en-us/library/ms235505(VS.80).aspx>

HTH

-- dimitris

2008/2/21, John D. Marinuzzi <nuzzi@nuzzi.net <mailto:nuzzi@nuzzi.net>>:

    Hello All,

    I just downloaded HDF5 1.8 and went through the
    INSTALL_Windows.txt file to get started. I get through to Install
    section 4.1 (Using Visual Studio 2005) and get 300 + build
    errors. Out of curiosity I checked to see if some of the files
    actual got built. HDf5d.lib does, but HDFd5dll.lib does not. Upon attempting to build just that project, the error I get is
    "fatal error LNK1104: cannot open file 'LIBC.lib'." Any
    suggestions as to why this happens, or to fix it?

    Thanks,

    John

--
- What is the difference between mechanical engineers and civil engineers?
Mechanical engineers build weapons civil engineers build targets.
- Good health is merely the slowest possible rate at which one can die.
- Life is like a jar of jalape�o peppers. What you do today, might Burn Your Butt Tomorrow

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

Hello Dimitris,

Thanks for the reply. I checked that setting and it was set for
Multithreaded already. All the files are “out of the box” from the zip
file, so I assume they were configured properly. What is odd also is that I
can only find libc.lib living on my computer in a “C:\Program
Files\Microsoft SDKs\Windows\v5.0\Lib\IA64” folder. I cannot find a
reference to it in the project itself, so I imagine it must be being pulled
in from another supporting file.

John

···

From: Dimitris Servis [mailto:servisster@gmail.com]
Sent: Thursday, February 21, 2008 1:23 PM
To: John D. Marinuzzi
Cc: hdf-forum@hdfgroup.org
Subject: Re: Build Errors...

Hi

check if the property "runtime library" under C/C++/code generation is
Singlethreaded Debug DLL. If so, change it to multithreaded Debug DLL. I
assume that if you try to use that hdf5d.lib you'll get the same lnk error
when trying to link. If this is the problem, FYI MS dropped single threaded
libraries beginning from VS2005

http://msdn2.microsoft.com/en-us/library/ms235505(VS.80).aspx

HTH

-- dimitris

2008/2/21, John D. Marinuzzi <nuzzi@nuzzi.net>:

Hello All,

I just downloaded HDF5 1.8 and went through the INSTALL_Windows.txt file to
get started. I get through to Install section 4.1 (Using Visual Studio
2005) and get 300 + build errors. Out of curiosity I checked to see if some
of the files actual got built. HDf5d.lib does, but HDFd5dll.lib does not.
Upon attempting to build just that project, the error I get is "fatal error
LNK1104: cannot open file 'LIBC.lib'." Any suggestions as to why this
happens, or to fix it?

Thanks,

John

--
- What is the difference between mechanical engineers and civil engineers?
Mechanical engineers build weapons civil engineers build targets.
- Good health is merely the slowest possible rate at which one can die.
- Life is like a jar of jalapeño peppers. What you do today, might Burn Your
Butt Tomorrow

Hi John,

I work on a lot of the Windows maintenance in HDF5, and I am curious about the troubles you are having. It is interesting that you get errors with Visual Studio 2005 on Windows XP, because that is exactly the configuration I do most of my testing on. :slight_smile:

You said that everything is "out of the box", so that should make things a little simpler. Do you think you could provide more details about the errors you are getting, especially the first few that come up.

Also, check the following, just to make sure:
-- You have downloaded the szip and zlib DLLs and have them installed in your %SYSTEMROOT%\system directory
-- You have setup environment variables HDF5_EXT_SZIP and HDF5_EXT_ZLIB correctly, according to your environment.
-- If you are using Visual Studio 2005, make sure you are using project files in the .\windows\proj directory. There are also project files in .\windows_vnet\proj that may be converted for VS2005, but they may cause problems.

If none of this helps, could you please tell me more about your build environment? Specifically, is your Windows up-to-date (XP SP2), is your Visual Studio up-to-date (8.0.50727.762 according to Help > About Microsoft Visual Studio), and are you using 32-bit or 64-bit?

Thanks,
Scott Wegner

John Marinuzzi wrote:

···

Hello Dimitris,

Thanks for the reply. I checked that setting and it was set for Multithreaded already. All the files are �out of the box� from the zip file, so I assume they were configured properly. What is odd also is that I can only find libc.lib living on my computer in a �C:\Program Files\Microsoft SDKs\Windows\v5.0\Lib\IA64� folder. I cannot find a reference to it in the project itself, so I imagine it must be being pulled in from another supporting file.

John

*From:* Dimitris Servis [mailto:servisster@gmail.com]
*Sent:* Thursday, February 21, 2008 1:23 PM
*To:* John D. Marinuzzi
*Cc:* hdf-forum@hdfgroup.org
*Subject:* Re: Build Errors...

Hi

check if the property "runtime library" under C/C++/code generation is Singlethreaded Debug DLL. If so, change it to multithreaded Debug DLL. I assume that if you try to use that hdf5d.lib you'll get the same lnk error when trying to link. If this is the problem, FYI MS dropped single threaded libraries beginning from VS2005

http://msdn2.microsoft.com/en-us/library/ms235505(VS.80).aspx

HTH

-- dimitris

2008/2/21, John D. Marinuzzi <nuzzi@nuzzi.net <mailto:nuzzi@nuzzi.net>>:

Hello All,

I just downloaded HDF5 1.8 and went through the INSTALL_Windows.txt file to get started. I get through to Install section 4.1 (Using Visual Studio 2005) and get 300 + build errors. Out of curiosity I checked to see if some of the files actual got built. HDf5d.lib does, but HDFd5dll.lib does not. Upon attempting to build just that project, the error I get is "fatal error LNK1104: cannot open file 'LIBC.lib'." Any suggestions as to why this happens, or to fix it?

Thanks,

John

--
- What is the difference between mechanical engineers and civil engineers?
Mechanical engineers build weapons civil engineers build targets.
- Good health is merely the slowest possible rate at which one can die.
- Life is like a jar of jalape�o peppers. What you do today, might Burn Your Butt Tomorrow

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.