Hi guys, Error- collect2.exe:fatal error:cannot find 'ld' compilation terminated Compiler:gcc library:mingw I have done quite a bit of internet search and followed a discussion pertaining to this on daniweb,but to no avail.Am working on code blocks. Initially there was no problem, then i linked libws2_32.a and even though it compiled for some time with no problem, but then it started giving me the error collect2: cannot find `ld'. I have reinstalled codeblocks, ld.bfd.exe is present in mingw, however the problem persists. I even tried using the ld.exe from another user, but it did not work, it crashes midway.(It was just …

Member Avatar
Member Avatar
+0 forum 2

Dear all, I am certainly not an expert in C++ development but after some time, I had some code running and compiling for a bio-informatics tool. As always in Science, I changed my area of research of a while and when I came back to my tool, I had changed my computer (and my gcc version) in between. In the program, I run several threads that call a function. This is where the function run_es_pval is called (and where the error message takes place) for (int i = 0; i < threadNb; i++) { int start = i * datasetPerThread; …

Member Avatar
Member Avatar
+0 forum 2

Hello! After I compile and run my program a windows error message shows up, it doesn't give some specific information it's just a standard windows xp error that asks me to send report. It gives me the error because in my code I have some basic math like this: int e = a - b; int r = c - d; int w = e / r; Even if I make a simple console program with only those lines , it still gives me the error. I'm using the latest version of DEV C++ on windows XP.

Member Avatar
Member Avatar
+0 forum 2

In my program that uses separate compilation, the only problem I have left is a linker error. To see if it was just a syntax error somewhere obscure, I made a simple "hello world" program that uses separate compilation. I get the same error. The code is below. If someone knows what is wrong, that would be awesome if they could help. The header file: [CODE] //file name: Hello.h #ifndef HELLO_H #define HELLO_H #include <iostream> using namespace std; class Hello { public: Hello(int x); }; #endif //HELLO_H[/CODE] The implementation file: [CODE] //file name: Hello.cpp #include <iostream> #include "Hello.h" using namespace …

Member Avatar
Member Avatar
+0 forum 6

The End.