Ubuntu :: Fatal Error: Iostream.h: No Such File Or Directory Compilation Terminated While Compiling C++ Code
Dec 9, 2010
whenever i am trying to compile a c++ program i am getting the following error sample.cpp:1: fatal error: iostream.h: No such file or directory compilation terminated
Code: #include<iostream.h> #include<stdio.h> main() { int num1, num2, sum; code....
I search the answer to my problem in various forums but I can't solve the problem.I think that is due to I need some package or that I don't install the necessary libraries.
I am trying to install a program called airfart and when I run make after cd'ing to the appropriate file i get this
Code:
g++ -g `pkg-config gtk+-2.0 --cflags` -o src/main.o -c src/main.cpp Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc'
I am trying to upgrade my NAS with anew toolchain, gcc-4.5.2. The NAS have been "hacked" fonz_plug, that contain a gcc version 4.1.3 with uClibc. I have download all needed tar files and done the following.My goal is to upgrade the gcc to 4.5.2 and replace the ucLibc on the system with a GNU libc.
# Pass one # # binutils ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --with-gmp=/ffp --with-mpfr=/ffp But when I try to compile the gcc with ../configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --enable-__cxa_atexit --with-float=soft --enable-languages=c,c++ --with-build-sysroot=/ffp --with-build-time-tools=/ffp/bin --with-system-zlib --enable-threads=posix --disable-bootstrap
since the recent upgrade to Maverik every time I boot this error message appear on the top of the screen: "modprobe: Fatal: Could not load /lib/modules/2.6.35-22-generic/modules.dep: no such file or directory" fter that plymouth starts without any graphics and the first visible object is the login interface (GDM)
I'm trying to build a program called Obpager, but I'm getting an error saying I don't have xlib.h. From what I understand, that file is included in libx11-dev, which I have installed. Any idea?
Code:
dagoss@MAGIC-PORT:~/Downloads/obpager-1.8$ make Compiling src/main.cc In file included from src/main.cc:33:0:
I have updated to ubuntu 10.10, but when I try to compile chromium on ubuntu, I get this error:
Code:
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:28, from /usr/include/gtk-2.0/gdk/gdk.h:33, from app/active_window_watcher_x.cc:6: /usr/include/gtk-2.0/gdk/gdkpixbuf.h:37: fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
What I don't understand is why gtk-2.0/gdk/gdkpixbuf.h complains that gdkpixbuf/gdk-pixbuf.h is not found. And how can I fix it?
make install then i got this error: postfix: fatal: chdir(/usr/libexec/postfix): No such file or directory make: *** [install] Error 1 I don't understand why it's checking the usr/libexec folder for the daemons although I've set the folder to /opt/product/postfix-2.6.5/libexec in the makefile. Here is also the cat of my makedefs.out:
Tonight I installed ubuntu 10.10 (32 bit) on an external usb harddrive with a dvd I burned and I used my older desktop. I disconnected all internal and external drives first so everything had to be put on the usb drive I selected (only option available). I used the option to load extra software, use the entire hard drive, and let the software do it's thing. I basically had no options where to put things and it didn't have much choice.
When I boot the usb drive on my laptop (win 7 64 bit) by telling the bios to boot to it first... I get an error: modprobe: FATAL Could not load /lib/modules 2.6.35-22 generic modules No such file or directory. This message appears twice and then it does boot into ubuntu and seems to work fine. I'm new to this OS so that is an uneducated guess but the things I have done seem to be working. So exactly what is this error referring too? Is there a way to fix the problem or do I just ignore it.
Im sure that this issue is pretty old and you get some results from forums when you google it, but I cant seem to find the solution : When I boot my system ( its duel boot , win7 / Slackware 13.1 ) the message : L 99 99 99 pops up. I know this has to do with the MBR, When I looked online this is what people were told to do:
My USB stick is this one: [URL] I can't get it to scan my frequencies. PC finds the stick (lsusb):
Code:
Bus 002 Device 005: ID 15a4:9016 Afatech Technologies, Inc. AF9015 DVB-T USB2.0 stick When I plug it in, dmesg shows this:
Code:
[ 5680.696043] usb 2-2: new high speed USB device using ehci_hcd and address 7 [ 5680.834917] usb 2-2: configuration #1 chosen from 1 choice [ 5680.849872] af9015: tuner id:179 not supported, please report! [ 5680.852951] Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7
[code]....
But if the directory is created, then after the same command I have
Code:
scanning /usr/share/dvb/dvb-t/lv-Riga using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' main:2273: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 19 No such device
I found on the internet a firmware for my USB HDTV DVB-T stick named "dvb-usb-af9015.fw" and copied it into /lib/firmware/ but I have not seen any difference with that.
i have ubuntu karmic 9.10 and when i try to update anything or install anything the a very similar error occurs."(Reading database . . . 55%dpkg: unrecoverable fatal error , aborting: files list file for package `com.palm.net.precoddr.fcoaster' contains empty filenameit repeats this message 3 times then gives up i believe.
I wrote a program in c++ on fedora 11. When i compiled it using g++. it displays the following error:
g++ fibnocci.cpp fibnocci.cpp:2:22: error: iostream.h: No such file or directory fibnocci.cpp: In function int main(): fibnocci.cpp:8: error: cout was not declared in this scope fibnocci.cpp:8: error: endl was not declared in this scope
Just switched over to Ubuntu 11.04 32bit. I have spent the day configuring it to my likings, and am content with Ubuntu. I have zero experience with coding, and bare minimum knowledge. Anyways, I have gotten some tar.gz files, that I have extracted them into folders, and then in terminal I run ./configure, and then I get the error "You need intltool 0.40.0 or later".
I'm using Vector Linux for years without any issues, But I'm really paining with configure X for perfect performance for my newly bought(only 1 month old) PC (which has the intel 845G graphic chip)
I also tried compiling the official driver from the Intel site but the compilation fails.After that I used i810 driver in xorg.conf, Its not stable and not reliable. Finally(even now) I'm using vesa driver,Its stable but I cannot play videos.video grabs always.
After messing up with grub, I reformatted my hdd and installed opensuse 11.4 (gnome+kde) from the dvd and also included the java sdk while installing, now the problem is that whenever i compile a java program, I get this error Code: /usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
Just I need some clarification. Is there any different form compilation is for Intel ATOM processor? Its same like all other intel processors right? Or it has any different type of compilation should be followed for Intel atom processor?
Just i need some clarification. Is there any different form compilation is for Intel ATOM processor? Its same like all other intel processors right? or it has any different type of compilation should be followed for Intel atom processor?
I had been working on a CPP code for sometime now, without being aware that some parts of its code, especially security related were not being compiled. Problem was like my product did not work for SSL mode. On analysis, I found that some part of CPP codes inside a switch(ENABLE_SSL_LIBRARY)were not getting compiled at all. And also that this gets set when we do newgrp crypto command on the box. This left me without lots of doubts. I wanted to understand how these switches work and if this switch was propreitary to my code or something related to Linux.
My questions now are: 1. Switches like the one mentioned above, are they user defined, for my particular code or are they related to Linux/GCC or makefiles? 2.If a user can define such switches to control code compilation, then need to know the concepts/procedures behind it. How is it done ?
Kindly excuse if these are very very basic. But since I could not get proper stuffs on google, I thought I should ask some experts here who could either explain me or point me to appropriate resources (links of articles / tutorials)
This morning when attempting to upgrade (aptitude update; followed by aptitude safe-upgrade) my system I started receiving the following error:
Preconfiguring packages ... (Reading database ... dpkg: unrecoverable fatal error, aborting: unable to open files list file for package `apache2-doc': Stale NFS file handle E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install. Trying to recover:
It doesn't seem to matter what repository I use or what particular package that I attempt to upgrade (all or just a single package). (In particular, apache2-doc is not even a package being upgraded, although it is installed on the system.) I have rebooted, run apt-get clean, run apt-get check, etc. to no avail. I am running a standard Debian (5.0.2/Lenny) desktop PC and am not running any NFS processes, client or server.
I want to compile the the source code given in a well known unix programming book(stevens) .I downloaded the codes but unable to build it ,giving me an errorerror: stropts.h: No such file or directoryI don't know what to do....I am using fedora 11 latest gcc in the system. I also try to include the search path which include a file -I./usr/include/xulrunner-sdk-1.9.1/system_wrappers but itI open the header file and the definition is there #include_next<strops.h>so ultimately there is not the original file
Recently I have downloaded TBB and I want to run a program using its libraries. But I encountered the following error: Linker: fatal error LNK1104: cannot open file 'tbb_debug.lib'
I want set up VPN on my VPS but when i try to turn on tun/tap i see:
:/lib/modules# modprobe tun FATAL: Could not load /lib/modules/2.6.18-194.17.1.el5.028stab070.7PAE/modules.dep: No such file or directory os : debian 5 (folder lib/modules is empty)
Awhile back, PabloTwo pointed me to zenity as a way to create bash scripts with changeable parameters. That thread is here, for anyone interested in reading about it: [URL] Anyway, my problem is that I'm trying to capture input that contains double-dashes ("--") but zenity (or maybe or it's bash???) complains with the following error message:
"This option is not available. for all possible usages. bash: [/code]: No such file or directory"
Here's an example of what I'm doing:
Code:
# Select the time of day Flytime=`zenity --list --text="Select the Time" --radiolist --height=300 --width=300 --hide-column=2 --column="Select" --column="Code" --column="Time of Day" "" "--timeofday=real" "Local Time"
[code]....
What I want to accomplish is for the variable $Flytime to contain either "--timeofday=real" or "--timeofday=dawn" (without the quotes) depending upon which radio button is selected. I have tried escaping "--timeofday" (e.g. "--timeofday" and even "--timeofday") but that's not working.