User forums > Using Code::Blocks

problems with fstream

(1/2) > >>

rilesdg3:
hell, I am new to code blocks and programing in a linux enviroment

my issue is that my code worked find in VS 2010 but it does not work in Code Blocks. The problem that I have is

fstream f;
f.open("adsf"); ///at this point intellisense does not offer f.open so if I type f. nothing comes up and I have
#include<fstream>
#include <iostream>
#include <sstream>

using namespace std;

 also I can not use std::fstream because fstream is not an option when I type std::

thank you for your help

oBFusCATed:
If you're using 10.05 or older you'll have to update to a nightly build and hope that it will work.

rilesdg3:
my ubuntu software center says I have downloaded and installed version 10.05-2, however when I start CB it says "Release 10.05 rev 0 (unknown date) gcc 4.6.1 linux/unicode - 32 bit

I think some how the problem lies within the stl and how code blocks looks/implements it because ifstream does not belong std:: I have downloaded kdevelop and the problem does not exist there,

Is it possible that I need to add something to the search directives? or did I some how miss something in the install process

thank you

oBFusCATed:

--- Quote from: rilesdg3 on January 20, 2012, 06:42:08 pm ---Is it possible that I need to add something to the search directives? or did I some how miss something in the install process

--- End quote ---
No, update to a nightly build. See here for details: http://apt.jenslody.de/

rilesdg3:
ok, thank you, I will try and figure it out, for some reason I am not able to figure out were/how to download and install, the link at jens sends me back to this forum for nightlies and from there I can not seem to find the right link, I found this link http://apt.jenslody.de/pool/dbg/c/codeblocks/ but once I get here do I need to download and install everything or is there just one that I need

I am really lost but I will try and get it figured out

thank you

Navigation

[0] Message Index

[#] Next page

Go to full version