[CMake] missing OLDNAMES.lib when building for WinCE

Bill Hoffman bill.hoffman at kitware.com
Thu Nov 20 08:54:05 EST 2008


Andreas Pokorny wrote:
> Hello,
> Maybe this is slightly offtopic, but I am playing around again with
> WinCE and CMake.
>  For some reason I am now running into an issue I never had before,
> during the compile
> checks I get the following output in CMakeError.log:
> 
> =========================================================
> Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
> Compiler: C:/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm/cl.exe
> Build flags:
> Id flags:
> 
> The output was:
> 2
> Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725 for ARM
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> CMakeCCompilerId.c
> Microsoft (R) Incremental Linker Version 8.00.50727.42
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> /out:CMakeCCompilerId.exe
> CMakeCCompilerId.obj
> LINK : fatal error LNK1104: cannot open file 'OLDNAMES.lib'
>

Try cmake --debug-trycompile then look at the .vcproj file for the 
compiler id test.  Somehow it is putting OLDNAMES as a library on the 
link line.  Is something wrong in your toolchain file?  Does OLDNAMES 
show up anywhere in your source tree?

-Bill


More information about the CMake mailing list