[CMake] windows link error

Simmons, Aaron asimmons at rosettastone.com
Thu Mar 4 17:08:32 EST 2010


I am trying to use cmake v2.8.0 on Windows XP to link a library.  On Mac OS X and Linux, it works.  But on Windows I get a very strange error:
	C:\strawberry\c\bin\ld.exe: /lib: No such file: No such file or directory

The only thing I can think of is that this is some kind of reference to "Strawberry Perl", which I don't even have installed.  My project, btw, has nothing to do with Pearl-- its C++.

Why isn't it using the path to the MSVC ld?  It does so for the cl tool.

Here is the full cmake/nmake output:


>cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Documents and Settings/asimmons/My Documents/Development/sre/branches/cmake/build

>nmake VERBOSE=1

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

        "C:\Program Files\CMake 2.8\bin\cmake.exe" -H"C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmake" -B"C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmake\build" --check-build-system CMakeFiles\Makefile.cmake 0
        "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_progress_start "C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmake\build\CMakeFiles" "C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmake\build\CMakeFiles\progress.marks"
        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f CMakeFiles\Makefile2 /nologo -                   all
        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f CMakeFiles\sonic.dir\build.make /nologo -L                  CMakeFiles\sonic.dir\depend
        "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_depends "NMake Makefiles" "C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmake" "C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmake" "C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmake\build" "C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmake\build" "C:\Documents and Settings\asimmons\My Documents\Development\sre\branches\cmak
e\build\CMakeFiles\sonic.dir\DependInfo.cmake" --color=
        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f CMakeFiles\sonic.dir\build.make /nologo -L                  CMakeFiles\sonic.dir\build
Linking CXX static library sonic.lib
        "C:\Program Files\CMake 2.8\bin\cmake.exe" -P CMakeFiles\sonic.dir\cmake_clean_target.cmake
        C:\strawberry\c\bin\ld.exe /lib /nologo  /out:sonic.lib @CMakeFiles\sonic.dir\objects1.rsp
The system cannot find the path specified.
NMAKE : fatal error U1077: 'C:\strawberry\c\bin\ld.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

>


More information about the CMake mailing list