Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

LNK1104: cannot open file 'LIBC.lib'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amrit Kohli - 21 Jun 2005 21:31 GMT
Hello.  I am trying to run the VS C++ compiler from the command line.  I
enter the following:

cl -GX prog1.cpp

It compiles the file fine, but then when it goes to link the object file, I
encounter the following error:

LINK : fatal error LNK1104: cannot open file 'LIBC.lib'

I'm sure this has something to do with a path variable that is not set
correctly.  What enviornment variable does LINK use to locate the
appropriate library files?

Thanks for any help!

Amrit Kohli
Doug Harrison [MVP] - 21 Jun 2005 21:54 GMT
> Hello.  I am trying to run the VS C++ compiler from the command line.  I
> enter the following:
[quoted text clipped - 9 lines]
> correctly.  What enviornment variable does LINK use to locate the
> appropriate library files?

You should run vsvars32.bat to set up the environment.

Signature

Doug Harrison
Microsoft MVP - Visual C++


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.