User forums > Help

Projects will not build

(1/3) > >>

Andrew Cay:
I am sure I have a compiler, I completely installed the minimalist pack.
Sorry if I'm using wrong terms, or just not saying anything completely right; I am completely new to code blocks and c++.

I believe this is a code blocks error, but I am most likely wrong.

Problem: Whenever I build my project (clicking the red arrow or green arrow ) it always says "this project has not been built yet would you like to build it?" And I will click yes. THEN, the same message will pop up right after I click yes and will continue to do that looping until I press no. When I press no, the console comes up telling me
"
Process returned 1982264457 (0x7626F489)   execution time : 0.000 s
Press any key to continue.
"
And when it's done, I get the return highlighted red as: Process terminated with status 1982264457 (0 minutes, 5 of seconds )

Now, I have messed with the paths and files that are used to run the c++ code, which I did through setting > compiler > toolchain executeables > c++ , BUT I reinstalled code blocks with the compiler built in. So, I reset everything and now it should be back to normal.

Yet, I am still having the looping problem and my projects are not being built at all.

One other problem: I'm just running the basic console application, where it has "hello world" and code block is underlining both those words in a string, giving me options to find references to them as if they were functions, variables, and such.

stahta01:

--- Quote from: Andrew Cay on July 17, 2013, 09:59:16 pm ---I am sure I have a compiler, I completely installed the minimalist pack.
Sorry if I'm using wrong terms, or just not saying anything completely right; I am completely new to code blocks and c++.

I believe this is a code blocks error, but I am most likely wrong.

Problem: Whenever I build my project (clicking the red arrow or green arrow ) it always says "this project has not been built yet would you like to build it?" And I will click yes. THEN, the same message will pop up right after I click yes and will continue to do that looping until I press no. When I press no, the console comes up telling me
"
Process returned 1982264457 (0x7626F489)   execution time : 0.000 s
Press any key to continue.
"
And when it's done, I get the return highlighted red as: Process terminated with status 1982264457 (0 minutes, 5 of seconds )

--- End quote ---

Likely do NOT have CB toolchain done correctly or have a bad or no compiler.


--- Quote from: Andrew Cay on July 17, 2013, 09:59:16 pm ---Now, I have messed with the paths and files that are used to run the c++ code, which I did through setting > compiler > toolchain executeables > c++ , BUT I reinstalled code blocks with the compiler built in. So, I reset everything and now it should be back to normal.

Yet, I am still having the looping problem and my projects are not being built at all.

--- End quote ---

You are wrong; re-installing CB does NOT change the past settings.
Edit: Link to past post http://forums.codeblocks.org/index.php/topic,18075.msg123587.html#msg123587

I suggest doing this step 4 in my directions.

--- Quote ---4. Click on "Result Defaults"
--- End quote ---


--- Quote from: Andrew Cay on July 17, 2013, 09:59:16 pm ---
One other problem: I'm just running the basic console application, where it has "hello world" and code block is underlining both those words in a string, giving me options to find references to them as if they were functions, variables, and such.


--- End quote ---

Disable or configure the spell checker plugin.

Andrew Cay:

--- Quote ---You are wrong; re-installing CB does NOT change the past settings.
--- End quote ---
When I said reset, I meant I went into the compiler settings and pressed reset defaults.

And I re-installed codeblocks using a different binary file, one that included the gnu compiler. - Even though I already installed the gnu compiler manually before, and I'm sure I have all the correct compiler paths, and executables in the right place.



--- Quote ---Disable or configure the spell checker plugin.
--- End quote ---
I disabled the spell checker. That problem is not happening any more, thank you.



--- Quote ---Likely do NOT have CB toolchain done correctly or have a bad or no compiler.
--- End quote ---
How could I possibly know? I installed it two different times, once from the actual site and all the files seemed to be correct. And I had no errors from code blocks saying it was missing a compiler.
On top of that, I reinstalled code blocks, this time the one that Included the compiler. I would have hoped that worked. I could only imagine the first one I downloaded was a bad compiler, and codeblocks didn't overwrite what I had previously.

stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Andrew Cay:
I followed the steps 1 by 1, and everything apparently is enabled automatically for the newest version which I am using.

I think the problem was that It's not being executed. (built)

And when I used the build button, and not the build and run, an error showed up
"Execution of 'mingw32-g++.exe -Wall -fexceptions  -g     -c C:\Users\userName\Desktop\newProj\main.cpp -o obj\Debug\main.o' in 'C:\Users\userName\Desktop\newProj' failed."

meaning It is not building, and I have no idea why. Maybe a bad compiler?

Navigation

[0] Message Index

[#] Next page

Go to full version