Gen Build Tool "LNK1104: cannot open file 'LIBC.lib'"
search cancel

Gen Build Tool "LNK1104: cannot open file 'LIBC.lib'"

book

Article ID: 46622

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

During the link step of a Gen Windows GUI C Client, the Build Tool fails and produces the following error in the out file: 

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

NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x450' 

Stop.

Resolution

Linking in LIBC.LIB is usually due to use of an External Action Block (EAB) library.  Microsoft continually changes its Visual Studio, and because of this, customers must recompile their external action blocks every time they change Visual Studio.
The current EAB library must be referencing libc.lib which cannot be found in current Visual Studio environment used by Gen Build Tool. The EAB should be recompiled with current version of Visual Studio and new EAB library created.
Also, the Build Tool Profile "C" token LOC.EXTERNAL_LIB should have correct version of the EAB library specified.