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.

Recommended Answers

All 4 Replies

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

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.