[Live-devel] LINK : fatal error LNK1181: cannot open input file 'msvcirt.lib'

Ross MacGillivray ross_macgillivray at yahoo.ca
Sun Jun 19 19:23:40 PDT 2005


Ross

Thank you for the answer to the question below on compiling 
UsageEnvironment.

I followed your suggestion, and re-generated the make files as Unix 
configuration files
using config.cygwin.

5 of the six libraries compiled and linked immediately:
   UsageEnvironmnet
   BasicUsageEnvironment
   Groupsock
   liveMedia
   testProgrs

However, the 6th library (WindowsAudioInputDevice) is proving to be slightly 
more challenging.
The make seems to be calling Microsoft tools, which I have installed, so on 
this library I am using
Nmake.   WindowsAudioInputDevice compiles, but I am getting the following 
link error

E:\livemedia-unix\live\WindowsAudioInputDevice>nmake /f AudioInputv2.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50215.44
Copyright (C) Microsoft Corporation.  All rights reserved.

        link -out:showAudioInputPorts_noMixer.exe /RELEASE msvcirt.lib 
/INCREME
NTAL:NO /NOLOGO -subsystem:console,5.0 kernel32.lib  ws2_32.lib mswsock.lib 
adva
pi32.lib bufferoverflowu.lib showAudioInputPorts.obj 
libWindowsAudioInputDevice_
noMixer.a ../liveMedia/libliveMedia.a ../groupsock/libgroupsock.a 
../UsageEnvir
onment/libUsageEnvironment.a 
../BasicUsageEnvironment/libBasicUsageEnvironment.a
  winmm.lib
LINK : fatal error LNK1181: cannot open input file 'msvcirt.lib'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
8\VC\bin\l
ink.exe"' : return code '0x49d'
Stop.

msvcirt.dll is installed all over my machine and the path contains at least 
one directory where it is installed.
Below is a selection of the locations where msvcirt.dll is installed.  What 
gives?

/Ross MacGillivray

C:\>dir msvcirt.dll /s
 Volume in drive C is WIN_XP_HOME
 Volume Serial Number is 3226-0BEE

 Directory of C:\WINDOWS\system32
04/08/2004  12:56 AM            54,784 msvcirt.dll
               1 File(s)         54,784 bytes
 Directory of 
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.CPlusPlusRuntime_6595b6414
4ccf1df_7.0.0.0_x-ww_2726e76a
29/08/2002  05:00 AM            50,688 msvcirt.dll
               1 File(s)         50,688 bytes
 Directory of 
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.CPlusPlusRuntime_6595b6414
4ccf1df_7.0.10.0_x-ww_d8862ba3
29/08/2002  05:00 AM            50,688 msvcirt.dll
               1 File(s)         50,688 bytes
 Directory of 
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.CPlusPlusRuntime_6595b6414
4ccf1df_7.0.2600.2180_x-ww_b2505ed9
04/08/2004  12:57 AM            54,784 msvcirt.dll
               1 File(s)         54,784 bytes
 Directory of C:\WINDOWS\I386\ASMS\7000\MSFT\WINDOWS\MSWINCRT
 29/08/2002  05:00 AM            50,688 MSVCIRT.DLL
               1 File(s)         50,688 bytes
 Directory of C:\WINDOWS\$NtServicePackUninstall$
29/08/2002  05:00 AM            50,688 msvcirt.dll
               1 File(s)         50,688 bytes
 Directory of C:\WINDOWS\ServicePackFiles\i386
04/08/2004  12:56 AM            54,784 msvcirt.dll
               1 File(s)         54,784 bytes
 Directory of C:\Program Files\Hewlett-Packard\Digital 
Imaging\{7C8BB31C-E09E-4c
7d-BBF1-45E33B467FE1}
09/09/2002  11:47 AM            70,656 msvcirt.dll
               1 File(s)         70,656 bytes
 Directory of C:\Program Files\Microsoft Platform SDK\redist\win64
24/03/2005  06:57 PM           184,320 msvcirt.dll
               1 File(s)        184,320 bytes
 Directory of C:\Program Files\Microsoft Platform SDK\redist\win64\AMD64
04/04/2005  06:49 PM            80,384 msvcirt.dll
               1 File(s)         80,384 bytes
     Total Files Listed:
              10 File(s)        702,464 bytes
               0 Dir(s)  13,090,160,640 bytes free

Message: 4
Date: Thu, 16 Jun 2005 00:26:17 -0700
From: Ross Finlayson <finlayson at live.com>
Subject: Re: [Live-devel] Newbie Question on Compiling
UsageEnvironment
To: "LIVE.COM Streaming Media - development & use"
<live-devel at ns.live.com>
Message-ID: <6.2.1.2.1.20050616002341.031f6da0 at localhost>
Content-Type: text/plain; charset="us-ascii"; format=flowed

Cygwin - although it runs on Windows - looks just like a Unix
environment.  Therefore, you configure it just like a Unix environment, by
running
genMakefiles cygwin
*not*
genWindowsMakefiles

"genMakefiles cygwin" should give you a Makefile for which you can just run
"make", as usual for Unix.

Ross Finlayson
LIVE.COM
<http://www.live.com/> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ross MacGillivray.vcf
Type: text/x-vcard
Size: 423 bytes
Desc: not available
Url : http://lists.live.com/pipermail/live-devel/attachments/20050619/9f801d1e/RossMacGillivray.vcf


More information about the live-devel mailing list