0

I am trying to compile my project and I keep getting this error:

cannot find `ld'
C:\Dev-Cpp\Projects\Makefile.win [Build Error] ["Final] Error 1

The Compiler Log says:

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projects\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Projects\Makefile.win" all
g++.exe FinalProgram.o -o "Final Program.exe" -L"lib"

collect2: cannot find `ld'

make.exe: *** ["Final] Error 1

Execution terminated

If anyone knows what I should do, it would be very much appreciated. Thanks.

4
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by Salem
0

first of all, you shouldn't name your thread with than name... maybe that way, other members would know what is your problem...

0

so can you help me?

The problem is in the makefile. Since you didn't post it nobody here is going to be able to help you.

maybe that makefile was not written for your compiler? You have to read its docs from whereever you got it.

0

Does C:\Dev-Cpp\bin\ld.exe even exist on your machine?

> Building Makefile:"C:\Dev-Cpp\Projects\Makefile.win"
Or maybe you've trashed the install by writing your projects inside the install directory structure.

Once you've installed it, you should regard the whole of C:\Dev-Cpp as read-only.

All your work should be in say C:\Projects for example.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.