User forums > Help

#include <iostream> NO such File or Directory

<< < (6/11) > >>

Okaya:
I just found a post in this forum, referring a member having build problems to uninstalling CodeBlocks and deleting the configuration files in the C:\Documents and Settings\User\Application Data\codeblocks directory.


--- Quote from: stahta01 on April 01, 2010, 03:53:08 pm ---I can not help you, all I can suggest is delete and re-install.

I would suggest un-installing Code::Blocks and deleting the config files.

How to delete configuration files.

Open using run this folder %APPDATA%\codeblocks delete at least the file default.conf; I suggest deleting them all.

Tim S.



--- End quote ---

Is this the place where past configurations and settings may have remained between successive reinstallations of CodeBlocks? I wrote a while ago:


--- Quote from: Okaya ---Another thing I notice but am not sure why it occurs is that CodeBlocks somehow "remembers" it's previous settings between successively uninstalling and reinstalling it (even though it's installation folder is automatically deleted with the uninstall process). That is, CodeBlocks remembers all my added include directories and linked libraries (and also remembered the erroneous Dev-C++ directory for the compiler) between successive reinstallations, without my having to manually reinput them upon reinstalling.
--- End quote ---

Okaya

Jenna:

--- Quote from: Okaya on April 08, 2010, 10:43:07 pm ---Is this the place where past configurations and settings may have remained between successive reinstallations of CodeBlocks?

--- End quote ---

Yes !

reckless:
good to know thanks jens :)



monsto:
first of all, to the regular users of this forum: this issue is not a lollable pebkac or ID-10t error. it is a legitimate issue. i followed Okaya's advices with the Toolchain executables tab (compilers installation dir is C:\Program Files\CodeBlocks\MinGW) and checking the windows path statement for Dev-C++ baggage, and everything is copacetic.

the problem:
after default installation, diving right in with example code returns errors collateral to the first.

--- Code: ---C:\learncpp\codeblocks\lesson\learn.c|2|error: iostream: No such file or directory|
--- End code ---

the reproduction:
* install codeblocks.
* start it up and click "create a new project."
* * accept the wizard defaults
* Rclick Management panel > Projects tab > [proj name] > Sources > main.cpp
* choose build file.

the log shows no errors.

* click new file
* choose Empty File
* "yes" to active project
* name the file
* ok to multiple selection
* paste some newbie trying to get started with learning the program code. (pasted from learncpp.com which recommends this ide)

--- Code: ---// #include "stdafx.h" // Uncomment if Visual Studio user
#include <iostream>

int main()
{
    using namespace std;    // gives us access to cout and endl
    int x;                  // declare an integer variable named x

    // print the value of x to the screen (dangerous, because x is uninitialized)
    cout << x << endl;
}

--- End code ---
* rclick the file in the sources folder of the management sidebar.
* choose build file.
* note the pile of errors starting with the title of this thread.

i've done nothing additional to my install of the program before coming across this problem. obviously some kind of path problem. however, the paths i have in relevant locations is correct.

the request:
to be able to add a file on default install and compile it without errors.

if i need to change a path somewhere, great.

Jenna:

--- Quote from: monsto on June 04, 2010, 10:28:23 pm ---* name the file

--- End quote ---

Which name do you give the file ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version