LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-23-2015, 11:37 AM   #1
Cronier
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Rep: Reputation: Disabled
Kububuntu GNU c++


Hi, I have problems compiling my program when I use #include <fstream> or any other file handling includes and codes to open and close files.
This is at home where I deleted windows from my laptop and installed kubuntu.
At work I have no problems using Microsoft windows.
 
Old 08-23-2015, 02:57 PM   #2
sneetsher
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
Could you include the full source and the command you have used to compile it.
 
Old 08-26-2015, 10:01 AM   #3
Cronier
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
/* my program FirstPro.c*/ #include <stdio.h> #include <iostream> using namespace std; int main(void) {
printf("Hello! This is a test prgoram.\n");
std:cout << "What the world needs now";
return 0; }
/* the compiler is not happy */
dries@dries-Inspiron-1440:~$ gcc FirstPro.c -o FirstPro >> aaa FirstPro.c:2:20: fatal error: iostream: No such file or directory
#include <iostream>
^ compilation terminated.
/* Meanwhile all the files needed by include resides in /usr/include-new I previously copied them from /usr/include/c++/4.9.2
each of the directories /usr/include/c++/4* contain all the file(majority without . h. I copied all inside 4.9.2 to /usr/include-new*/
~
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GNU Hurd 0.5, GNU Mach 1.4 Released LXer Syndicated Linux News 0 09-29-2013 01:42 PM
LXer: Debian 7.0 GNU/Linux vs. GNU/kFreeBSD Benchmarks LXer Syndicated Linux News 0 06-11-2013 03:00 AM
LXer: GNU Grep & Sed: Fallout Within The GNU FSF Camp LXer Syndicated Linux News 0 12-24-2012 06:39 PM
LXer: To GNU or Not to GNU? That Is the Question LXer Syndicated Linux News 0 05-11-2012 06:21 AM
GNU Make and GNU GCC DEBUG vs RELEASE compiler options aryan1 Programming 1 01-12-2010 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration