Code::Blocks Forums

User forums => Help => Topic started by: landey on April 20, 2019, 11:06:49 pm

Title: Building issues
Post by: landey on April 20, 2019, 11:06:49 pm
When i try to build my code a new tab called iostream opens every time, and i cant check if my code is built properly or run it either.
Title: Re: Building issues
Post by: oBFusCATed on April 21, 2019, 01:41:26 am
Have you looked at the build log/build messages in the log & others? Are there any errors? You can click on lines in the build message to focus the editor on the line which causes the compiler to emit the error.
Title: Re: Building issues
Post by: landey on April 21, 2019, 02:27:22 am
thats the thing, i don't get any specific comments in my personal code. my code is 25 lines or so and when i try and build it it opens a new tab called ostream and theres about 300 lines with errors that i have no clue what they mean. one error i recall was that cout was not declared in this scope.

is there a way to attach pictures? this is the first forum ive ever used in truth and feel that might help.
Title: Re: Building issues
Post by: landey on April 21, 2019, 02:45:18 am
this is the issue
Title: Re: Building issues
Post by: landey on April 21, 2019, 02:46:41 am
before that other tab wouldn't open and i would simply see my code and what errors there were but now that second tab opens up and its gibberish to me.
Title: Re: Building issues
Post by: stahta01 on April 21, 2019, 04:30:56 am
Post a build log

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Tim S.
Title: Re: Building issues
Post by: sodev on April 21, 2019, 05:48:12 am
Use a project! From the screenshot it looks like you compile a single file without a project, this can lead to various issues.

The error message indicates wrong search paths, its kind of weird that it could find even that header, but again, without a project and properly setup compiler, things like that can happen.