- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(I thought I have posted a message similar to the following on the day before yesterday. But I could not find it now.)
I tried to build a library and got the two error messages:
1. error #10037: could not find lib (file: xilib)
2. error spawn_errno_default: spawn(C:\\PROGRA~2\\Intel\\Compiler\\11.1\\067\\bin\\ia32\\xilink.exe) failed, errno=0 (file: Lib)
The command line for Fortran is
/nologo /I"\\CWR\\netCDF\\inc" /module:"Release/" /object:"Release/" /libs:static /threads /libdir:noauto /c, with an additional option of /iface:cvf.
The command line for Librarian is
/OUT:"Release/LibCwrCommon.lib" /NOLOGO.
I searched over the forum and found the issue of error #10037 but that was for could not find link and I still could not figure out how to solve my problem.
Please help.
Wen
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error occurred when I tried to build the library inside Visual Studio.
The procedure has gone through successfully many times before for my code v.1 and its revised v.2. After about three months of not working on this project, I came back, added some write statement for v.1, and found the said error appeared by using Intel Visual Fortran v.11.1.060, update 5, installed on Apr. 1, 2010. Then I installed v.11.1.067, update 7, and the same error remains.
Wen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am building for 32-bit.
I selected Tools > Options > Intel Visual Fortran > Compilers. Click "Reset All", then OK. I build the code libCwrCommon and got the same error message as before. That code uses the library of netCDF.
For libCwrCommon, the command line for Fortran is
/nologo /I"\CWR\netCDF\inc" /module:"Release/" /object:"Release/" /libs:static /threads /libdir:noauto /c
with
/iface:cvf
as the Additional Options. The command line for Library is
/OUT:"Release/LibCwrCommon.lib" /LIBPATH:"\CWR\netCDF\lib" /NOLOGO \CWR\netCDF\inc
For netCDF, the command line for Fortran is
/nologo /module:"Release\" /object:"Release\" /libs:static /threads /c
The command line for Library is
/OUT:"Release/netCDF.lib" /NOLOGO.
I tried to attach buildlog.htm, but, after I clicked on Reply to your message and clicked Add Files, a small ring from Windows Vista kept on turning for more than five minutes to keep me waiting. I restarted the Internet Explorer and got the same problem. So, Ihave buildlog.htm copied tothe following.
For libCwrCommon, the buildlog.htm shows
Build Log
Build started: Project: LibCwrCommon, Configuration: Release|Win32
Output
Creating library...
Lib /OUT:"Release/LibCwrCommon.lib" /LIBPATH:"\CWR\netCDF\lib" /NOLOGO \CWR\netCDF\inc "Release/ioconsts.obj" "Release/cwrconstants.obj" "Release/lcsimio.obj" "Release/cwrmethods.obj" "Release/cwrtypes.obj" "Release/simulateableclass.obj" "Release/dyresmInflowProc.obj" "Release/cdCfPp.obj" "Release/elcomio.obj" "Release/dyresmConfigPreproc.obj" "Release/dyresmInitProfPreproc.obj" "Release/caedymForcingPreproc.obj" "Release/dyresmWdrProc.obj" "Release/dyresmMetProc.obj" "Release/caedymHW.obj" "Release/dyrimio.obj" "Release/dyresmDestratProc.obj" "Release/caedymConstPreproc.obj" "Release/caedymInitPreproc.obj" "Release/dyresmMorphProc.obj" "Release/dysimio.obj" "Release/caedymCreateNetCDF.obj" "Release/dyresmParamPreproc.obj" "Release/cdsimio.obj" "Release/dyresmCreateNetCDF.obj" "E:\CWR\netCDF\IVF\Release\netCDF.lib"
xilib: executing 'lib'
xilib: error #10037: could not find 'lib'
Lib: error spawn_errno_default: spawn('C:\PROGRA~2\Intel\Compiler\11.1\067\bin\ia32\xilink.exe') failed, errno=0
LibCwrCommon - 2 error(s), 0 warning(s)
For netCDF, the buildolog.htm shows
Build Log
Build started: Project: netCDF, Configuration: Release|Win32
Output
Creating library...
Lib /OUT:"Release/netCDF.lib" /NOLOGO "Release\typeSizes.obj" "Release\netcdf.obj" "Release\netcdf_test.obj"
xilib: executing 'lib'
xilib: error #10037: could not find 'lib'
Lib: error spawn_errno_default: spawn('C:\PROGRA~2\Intel\Compiler\11.1\067\bin\ia32\xilink.exe') failed, errno=0
netCDF - 2 error(s), 0 warning(s)
Wen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote a super simple test program. When I built it, I got an error message:
rc.exe not found.
In Visual Studio, I selected Tools > Options > Intel Visual Fortran > Compilers and clicked on Reset All. After close and re-open MS Visual Studio 2008, I build the test program again and still get the same error message.
I downloaded w_cprof_p_11.1.048.exe in last October and w_cprof_p_11.1.060_novsshell.exe in April. Visual Fortran worked fine at that time. After a few months of not using the visual Fortran, I tried to build a code, which was slightly revised from one that passed the compilation/link before, and got the error message of
error #10037: could not find lib
Then, I downloaded w_cprof_p_11.1.067_novsshell.exe one week ago. But I still get the same error.
Should I try deleting
Intel Visual Fortran Compiler Professional Edition 11.1.067 Update 7 on Windows
and
Microsoft Visual Studio 2008 shell (integrated mode)
and then install w_cprof_p_11.1.067.exe?
Should I uninstall any other programs before I install w_cprof_p_11.1.067.exe? I have
Intel Visual Fortran Compiler Professional Edition 11.1.046 Update 2 or Windows
in the program list. When I tried to delete it, I got the error message:
ERROR: The installation package is corrupted. SUGGESTION: Download the package, and run the installation again.
I also have the following programs in the system:
Microsoft Visual C++ 2005 ATL Update kb973923 - x86 8.0.50727.4053
Microsoft Visual C++ 2005 Redistributable
Microsoft Visual Studio 2005 64bit Prerequisites (x64) - ENU
Microsoft Visual Studio 2005 Remote Debugger Light (x64) - ENU
Microsoft Visual Studio 2005 Standard Edition - ENU
MSDN Library for Visual Studio 2005.
Should I have them uninstalled?
Wen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Under C:\Program Files\Microsoft Visual Studio 8\VC\bin, I have lib.exe (as well as cl.exe, link.exe, and xdcmake.exe) but not rc.exe.
Under C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin, I have cl.exe and link.exe but neither lib.exe nor rc.exe.
I am going to uninstall Fortran and Visual Studio, then reinstall Visual Studio and then Fortran.
To reinstall Visual Studio and then Fortran, cant I just download and install
Intel Visual Fortran Compiler XE for Windows (incl. Microsoft Visual Studio 2008 Shell and Libraries)
in one shot? If not, how do I reinstall Visual Studio?
Wen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are on an x64 version of Windows, I see, not that that should make a difference. I suggest you try to fix VS2005 as a first step - maybe just do a "repair" of it from its installer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I probably dont have chance to use either C++ or Resource Editor. Therefore, Visual Studio 2008 Shell and Libraries are probably good enough.
Can I keep VS2005 and install VS2008 Shell? Would Visual Fortran get confused?
I am on an x64 Windows Vista. But I normally compile/link 32-bit Fortran programs for my colleagues.
On Oct. 9, 2009, I installed w_cprof_p_11.1.048.exe, which included VS2008 Shell. So I have both VS2005 and VS2008 Shell in the system. Since then, I have been using VS2008 and Visual Fortran worked fine for a long time until recently. All errors I reported were generated by VS2008, not VS2005.
Right now, I have
c:\Program Files\Microsoft Visual Studio 8\
c:\Program Files\Microsoft Visual Studio 9.0\
c:\Program Files (x86)\Microsoft Visual Studio\
c:\Program Files (x86)\Microsoft Visual Studio 8\
c:\Program Files (x86)\Microsoft Visual Studio 9.0\
In the list of programs for Uninstall or change a program inside Control Panel, I have
Intel Visual Fortran Compiler Professional Edition 11.1.046 Update 2 or Windows
Intel Visual Fortran Compiler Professional Edition 11.1.067 Update 7 on Windows
Microsoft Visual C++ 2005 ATL Update kb973923 - x86 8.0.50727.4053
Microsoft Visual C++ 2005 Redistributable
Microsoft Visual Studio 2005 64bit Prerequisites (x64) - ENU
Microsoft Visual Studio 2005 Remote Debugger Light (x64) - ENU
Microsoft Visual Studio 2005 Standard Edition - ENU
MSDN Library for Visual Studio 2005
Microsoft Visual Studio 2008 shell (integrated mode)
Wen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you download VS2008 Shell from Microsoft?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did it one year ago and again today. I installed VS2008 shell to the system, which has VS2005 resides. No I did not download VS2008 Shell from Microsoft.
What I did today is:
. Remove IVF Compiler Professional Edition 11.1.067 Update 7 for windows.
. Remove MS VS 2008 . . .
. Remove MS VS 2008 Debugger . . .
. Download and install IVF Composer XE for Windows (incl. MS VS 2008 shell and Libraries)
After the installation, I checked Control Panel > Programs > Programs and Features. I can see
Intel Composer XE 2011 for window,
Microsoft visual Studio 2005 64bit Prerequisites (x64) - ENU
Microsoft visual Studio 2005 Remote Debugger Light (x64) - ENU
Microsoft visual Studio 2005 Standard Edition - ENU
Microsoft visual Studio 2008 Remote Debugger - ENU
Microsoft visual Studio 2008 Shell (Integrated mode) - ENU
I ran Microsoft Visual Studio 2008. Help > About Microsoft Visual Studio shows the Product details as: Intel visual Fortran Composer XE 2011 Integrated for Microsoft Visual Studio 2008, 12.0.3470.2008.
When I re-built my software library, the previous error messages of
error #10037: could not find lib (file: xilib)
(from building a user library) and
rc.exe not found
(from building a super simple code) do not appear anymore.
However, a new error message came out when I build my library program:
fatal error LNK1104: cannot open file Myfolder\inc (from LINK.exe)
Myfolder\inc is listed in Additional Include Directories on the Property Pages for Fortran and in Additional Dependencies on that for Librarian. In windows Explorer, that Myfolder\inc does show up at the location I specified in the Property Pages for Fortran and Librarian. What's happening?
Please help.
Wen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used to use the Debug configuration successfully. I failed to make corresponding debuging to tbe Release configuration and forgot that the Release configuration was not cleared when I built with the Release configuration a few days ago.
Wen
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page