User forums > General (but related to Code::Blocks)

how to make such setting in code blocks.

<< < (2/2)

Freem:

--- Quote from: vikash on July 18, 2011, 04:17:02 pm ---But when i compile Hello world program it say no file like iostream found in directory as an error.

--- End quote ---
Sounds more like a problem with the library.
Did you look into other tabs to change where C::B search headers and libs?

The 2 absent files should not be mandatory to build a console only program (But I can be wrong, I'm not at all a guru of compilers and compilation). But you can search and specify them by hand to verify.
To be sure, post your complete build log

stahta01:
Hints to help it work right; set the Compiler You wish to use most of the time as the default compiler.
use ["set as default" button]
After setting up the tool chain, Turn on Full Compiler Logging to troubleshoot Compiler issues.

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

NOTE: Do NOT use the extension ".c" for C++ Programming source files.

Edit: cdb.exe is only needed for debugging.

Tim S.

vikash:

--- Quote from: stahta01 on July 18, 2011, 05:29:43 pm ---Hints to help it work right; set the Compiler You wish to use most of the time as the default compiler.
use ["set as default" button]
After setting up the tool chain, Turn on Full Compiler Logging to troubleshoot Compiler issues.

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

NOTE: Do NOT use the extension ".c" for C++ Programming source files.

Edit: cdb.exe is only needed for debugging.

Tim S.

--- End quote ---
I have done what i was looking for. I follow these steps.
(1) uninstall codeblocks.
(2) delete this folder  C:\Users\<user name>\AppData\Roaming\codeblocks. It contain configuration files.
(3) install codeblocks it asks in starting to change compiler i set VC++ 2008 express as default(in starting) now it compiles with VC++. unfortunately i can't debug.

stahta01:
Install cdb.exe the directions are somewhere on the web. Maybe even on our wiki.

cdb is a software package from microsoft.

Tim S.

oBFusCATed:
Note1: To get cdb.exe, you need the "Debugging tools" from Microsoft.
Note2: You will get better experience/results with a nightly build of C::B from the debugger's branch.

Good luck...

Navigation

[0] Message Index

[*] Previous page

Go to full version