Posted by lj on .
ineed help with c++.
i am using code blocks and i have a problem with the compiler.
when I run this code ¡é
# include <iostream>
using namespace std;
this message keep pops up. ¡é
"It seems that this file has not been built yet. Do you want to build it now? (Yes)/(No)/(Cancel)"
this message only dissapears when i click no or cancle.
and they give me this message. ¡é
mingw32-g++.exe -fexpensive-optimizations -Os -O3 -O2 -O1 -O -Wmain -pedantic-errors -pedantic -w -Wfatal-errors -W -Wall -ansi -pg -g -c "D:\Grade 12 Computer Science\CodeBlocks\hello world.cpp" -o "D:\Grade 12 Computer Science\CodeBlocks\hello world.o"
Execution of 'mingw32-g++.exe -fexpensive-optimizations -Os -O3 -O2 -O1 -O -Wmain -pedantic-errors -pedantic -w -Wfatal-errors -W -Wall -ansi -pg -g -c "D:\Grade 12 Computer Science\CodeBlocks\hello world.cpp" -o "D:\Grade 12 Computer Science\CodeBlocks\hello world.o"' in 'D:\Grade 12 Computer Science\CodeBlocks' failed.
Nothing to be done.
Checking for existence: D:\Grade 12 Computer Science\CodeBlocks\hello world.exe
Executing: D:\Grade 12 Computer Science\CodeBlocks/cb_console_runner.exe "D:\Grade 12 Computer Science\CodeBlocks\hello world.exe" (in D:\Grade 12 Computer Science\CodeBlocks)
Process terminated with status -1073741510 (3 minutes, 40 seconds)
can someone tell me what i need to do to solve the problem?
computer science -
In computer science question which involve compilation problems, it is important to indicate the name of the compiler, version, and operating system.
In any case, you need a semi-colon after every C++ statement, and one is missing after endl.
If that doesn't solve your problem, post again with full details.
Note: if you are using dev C++, you will see a black screen appear for about 1/10th of a second and disappears. That is because there is nothing to halt the screen to give you time to read the text displayed. This is a programming problem.