I am running Dev-C++ Version 4.9.9.2 on a Windows XP system. Every time I try to compile a program I get this 1 error that says:
cannot find `ld'
C:\Documents and Settings\Mike\Desktop\Makefile.win [Build Error][mike.exe] Error 1
Heres the compile log:
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Mike\Desktop\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\Mike\Desktop\Makefile.win" all
g++.exe main.o -o "mike.exe" -L"C:/Dev-Cpp/lib"
collect2: cannot find `ld'
make.exe: *** [mike.exe] Error 1
Execution terminated
Also here is the code I am trying to compile:
include <stdlib.h>
include <iostream>
include <string>
using namespace std;
int main(int argc, char *argv[])
{
string name;
string password;
string dog = "dog";
cout << "What is your first name?" << endl;
cin >> name;
cout << "Hello " << name << endl;
cout << "What is the password?" << endl;
cin >> password;
if (password == dog)
{
cout << "That is correct!" << endl;
}
else
{
cout << "Sorry..." << endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
Everything seems to be right, except it cannot find ld.............I looked in the the dev-c++ bin and it's not there.
I have no clue what happened. Can someone please help out?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Don't install Dev-C++ in a path with spaces, like 'Program Files' or 'Documents and Settings'. This is known to cause major issues.
Also do not install Dev-C++ on your desktop, it will not work if you do that.
Dev-C++ wants to install in C:\Dev-cpp, just let it do that, it will cause you the least amount of problems in the future.
To uninstall Dev follow the instructions you will find in the FAQ
It is very important that you find and delete the two files devcpp.ini and devcpp.cfg. If you don't find and delete them, when you reinstall Dev-C++ it may still not work.
See Ya
Butch
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am running Dev-C++ Version 4.9.9.2 on a Windows XP system. Every time I try to compile a program I get this 1 error that says:
cannot find `ld'
C:\Documents and Settings\Mike\Desktop\Makefile.win [Build Error] [mike.exe] Error 1
Heres the compile log:
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Mike\Desktop\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\Mike\Desktop\Makefile.win" all
g++.exe main.o -o "mike.exe" -L"C:/Dev-Cpp/lib"
collect2: cannot find `ld'
make.exe: *** [mike.exe] Error 1
Execution terminated
Also here is the code I am trying to compile:
include <stdlib.h>
include <iostream>
include <string>
using namespace std;
int main(int argc, char *argv[])
{
string name;
string password;
string dog = "dog";
cout << "What is your first name?" << endl;
cin >> name;
cout << "Hello " << name << endl;
cout << "What is the password?" << endl;
cin >> password;
if (password == dog)
{
cout << "That is correct!" << endl;
}
else
{
cout << "Sorry..." << endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
Everything seems to be right, except it cannot find ld.............I looked in the the dev-c++ bin and it's not there.
I have no clue what happened. Can someone please help out?
Hi Mike:
Don't install Dev-C++ in a path with spaces, like 'Program Files' or 'Documents and Settings'. This is known to cause major issues.
Also do not install Dev-C++ on your desktop, it will not work if you do that.
Dev-C++ wants to install in C:\Dev-cpp, just let it do that, it will cause you the least amount of problems in the future.
To uninstall Dev follow the instructions you will find in the FAQ
It is very important that you find and delete the two files devcpp.ini and devcpp.cfg. If you don't find and delete them, when you reinstall Dev-C++ it may still not work.
See Ya
Butch
thanks. ill try that