[CMake] windows link error

Andreas Pakulat apaku at gmx.de
Thu Mar 4 17:23:25 EST 2010


On 04.03.10 17:08:32, Simmons, Aaron wrote:
> 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.

MSVC has no ld, MSVC's compiler is "cl.exe", the linker is called
"link.exe". So it looks like your environment is somehow strange. Can
you post the output of set? 

Andreas

-- 
You will lose your present job and have to become a door to door mayonnaise
salesman.


More information about the CMake mailing list