PDA

View Full Version : Build problem



poporacer
27th September 2010, 05:58
I have a program that won't build or compile. There doesn't appear to be any errors with the code. I have done a clean and then tried to rebuild. Each time I get the error:
:: error: collect2: ld returned 1 exit status

What does this mean?

santhoshpatil
27th September 2010, 07:11
Hi
i used to get these error's. i tried to run the program from command prompt using qmake -project option(just google it you will get how to run this from command prompt) and also check Qt/bin folder and ming compiler included in the path variable or not...

try to include the library in the .pro file of the project

Eg; if you are using the webView inside your project than include webkit QT+ = webkit .. soemthing like that in the .pro file

Hope this helps

hope this helps

Zlatomir
27th September 2010, 09:33
A better "solution" is to look in the Output Panel (where you see that: :: error: collect2: ld returned 1 exit status) at the Compile Output (select instead of Build Issues) and see what's the actual error that your code has.

poporacer
28th September 2010, 01:51
Zlatomir
That is what I needed to know! I was able to track down the problem from there!