Fedora :: Compiling C++ Program On 11 - No Such File Or Directory

May 25, 2010

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

View 2 Replies


ADVERTISEMENT

Programming :: (.text+0x7): Undefined Reference - Compiling Program Include One Header File And 2 C

May 21, 2011

i am a new programer in c i have write a simple app and i have a problem with combiling my program include one header file and 2 c

fun.h
#include<stdio.h>
void f();
/******EOF*******/
fun.c
#include"fun.h"
void f(){
[Code].....

View 6 Replies View Related

Fedora :: Compiling A Program Using WxWidgets?

May 28, 2010

Code:

g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld
hworld.cpp:5:20: error: wx/wx.h: No such file or directory
(snip)

I looked at other topics with similar problems and I have both wxGTK and wxGTK-devel installed. I'm pretty sure the method of compiling is correct.

View 4 Replies View Related

Red Hat :: C Program Not Compiling In Fedora 13 / Solution For This?

Feb 5, 2011

Recently i have installed fedora 13 my laptop but when i try to compile a c program it says that gcc command not found.

i think repo file must be created first but i dont know how to create a repo file in fedora 13
or is there any other solution.

View 2 Replies View Related

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

View 1 Replies View Related

Software :: Compiling A Program Both For Fedora And Ubuntu?

Jun 28, 2010

I'm sometimes compiling a piece of software on my Fedora 13 machine and then transferring it to an Ubuntu box. Recently I noticed this would yield issues with Fedora's .so files:

Given I had a program's binary and an .so file the program would attempt to load, both compiled on Fedora, the program would run fine on Ubuntu 8.04 LTS but would be unable to load to open the Fedora .so with an "ELF file OS ABI invalid" error.

Now any program I natively compile on Ubuntu which I run on Fedora instead, will throw the *same* error with Fedora .so's - so basically neither a Fedora bin on Ubuntu, nor an Ubuntu bin on Fedora can load the Fedora .so files, only a Fedora bin natively on Fedora can.

That means Fedora .so files are always a problem on Ubuntu, and Ubuntu bins are always a problem on Fedora (unable to load system libs there).

This is a bit odd for e.g. binary redistributions of programs (which are rare I know) and I also found out that e.g. Tibia's linux client suffers from this issue (throws "ELF file OS ABI invalid" on my Fedora 13 when attempting to load my system's libGl).

And I started to wonder whether the only way to work-around to get something that works on all platforms is a Fedora binary shipped with .so files compiled on Ubuntu - which seems a bit stupid and ridiculously complicated just to get something that works flawlessly everywhere. Isn't there e.g. a gcc switch that will allow me to compile the .so files on Fedora in such a way that they can also be used on an Ubuntu system so just compiling everything on Fedora, yet getting it to work on Ubuntu aswell would be possible?

View 13 Replies View Related

Ubuntu :: Is There Any Program / Script That Can Create Torrent File For Each File In Directory?

Apr 14, 2010

Is there any program/script that can create a torrent file for each file in a directory? I have been looking all over but can't seem to find anything of the sort. I have 700+ files I REALLY don't want to make my self.

View 1 Replies View Related

General :: Compiling 32 Bit Sample Program On 64 Bit Fedora Using - M32 Option

Oct 7, 2009

I have Fedoara 11 install on my PC. I want to compile program as 32 by g++ option -m32. I have 32 bit library install on my machine which present in path

When i compile my sample program with -c & -m32 option it compile correctly

Then it gives linking error as:

View 2 Replies View Related

General :: Writing And Compiling Java Program In Fedora 12?

Mar 21, 2010

how we can we write java programs in java and how we execute it.. to produce output?

View 2 Replies View Related

General :: A C Program Which Was Compiled Properly In DevCPP Is Not Compiling In Fedora?

Oct 30, 2010

A C program which compiled well in Dev CPP compiler is not compiling in Linux-Fedora.It shows the following error message/tmp/ccy02C6e.o.eh_frame+0x12):undefined reference to '__gxx_personality_v0'collect2:ld returned 1 exit status

View 2 Replies View Related

Ubuntu :: Extract File To Program Directory?

Jul 19, 2010

How do i extract a file to a program directory ?

YEA stupid question but im used to windows and im trying to learn ubuntu so far i love it just hitting bumps..

I want to extract

xbmc to

.xbmc/plugins/program directory

i downloaded the file, but when it comes to extracting im lost, because i cannot access the root ? is that were it is ?

View 9 Replies View Related

Ubuntu :: File Association To A Program That Will Only Run In It's Own Directory?

Apr 9, 2011

is a file association to a program that will only run in it's own directory. (Arobas' Guitar Pro, if you're curious). The link created by the installer leads to a shell script, which cd's to /opt/GuitarPro6, then executes the program there. Attempting to call the program from outside that directory fails, as the program cannot find it's libraries. It starts normally otherwise.

Passing a file name to the program via the command line works fine, IF you start with the working directory as above. The question is, what can I do to pass the filename to the command line in the shell script, so that double-clicking in Nautilus brings up the program with the file? (Currently, just associating with the shell script gives me the program, with no loaded file).

Second issue is files with an .hjt extension. They're essentially text files, following a specific format used by Treepad. Nautilus recognizes them as text files. When I change their association to Treepad, regular .txt files follow this change, and when I change the .txt's back to Leafpad, the .hjt's follow. How can I separate the .hjt's from the .txt's?

View 9 Replies View Related

Ubuntu :: Run A Program Automatically When A File Appears In A Directory?

Jan 16, 2010

Does anyone know how I can make a program run automatically when a file appears in a particular directory? I have two computers, one to program the firmware on a microcontroller (command line only), and the other is my desktop machine running Ubuntu. I have an NFS share between the two. What I want is to be able to drop a new firmware load into the shared directory from the desktop, and have the other computer notice it and program the microcontroller with it. Right now I have to open an SSH session to the other computer, run the program manually, and then delete the file. I would like to automate all of that.

View 5 Replies View Related

General :: Get Socket.h Header File / Copy Pasting This Header File In 'incl' Directory Allow To Use It In The Program?

Apr 22, 2011

where can i get socket.h header file? will copy pasting this header file in 'incl' directory allow me to use it in the my program?

View 1 Replies View Related

Red Hat / Fedora :: Error While Compiling With Eclipse - File Truncated

Oct 14, 2010

I get an error while compiling in Eclipse:
*.o: file not recognized: File truncated
I tried to remove all the .obj and .moc folders and make clean but can't solve the problem! Maybe I'm missing something here.

View 2 Replies View Related

OpenSUSE :: Compiling First Program In 11.3?

Dec 6, 2010

I was reading the following forum guide:openSUSE software installation hints So I decide to install from the souce code the following webcam application:

GTK+ UVC Viewer In order to avoid problems ( it is my first installation from souce code) I downloaded and unpacked everything in an USB key and I worked from, as the guide said, from the Linux terminal. Once I was in the right directory and I compute the command:

[code]..

View 9 Replies View Related

Ubuntu :: Getting Error In Compiling RPC Program

Mar 22, 2010

I am trying to compile a simple remote procedure call program. I am getting an error:
/tmp/ccy0M5rT.o: In function 'main':
rpchighlayer.c.text+0x5c): undefined reference to 'rnusers'
collect2: ld returned 1 exit status

Code:
#include <stdio.h>
#include<stdlib.h>
main(argc, argv)
int argc;
char **argv; {
int num;if (argc != 2) {
fprintf(stderr, "usage: rnusers hostname ");
exit(1);
} if ((num = rnusers(argv[1])) < 0)
{fprintf(stderr, "error: rnusers ");
exit(-1);
} printf("%d users on %s
", num, argv[1]);
exit(0); }

View 2 Replies View Related

Programming :: Meaning Of Compiling A Program?

Aug 17, 2010

I have been using gcc to compile C programs.
I want to know what exactly is the meaning of Compiling a C program.
I checked
cc -S prog.c
will give an .S file and if you analyze the hexdump I saw some assembly instructions.
So what does the compiler do which is not required in case of interpreted languages?

View 13 Replies View Related

Ubuntu :: Getting Error While Compiling A C Program / Fix It?

Mar 10, 2010

I got an error that header file sys/ddi.h , did the system is missing something

View 2 Replies View Related

Ubuntu :: "No Such File Or Directory" Reported On Running Program From Terminal

Jan 14, 2011

When I try to run a program from the terminal, bash reports "No such file or directory", even though the file exists, is executable and I have permission to run it. The same program worked in the past.

View 7 Replies View Related

Programming :: Compiling A C++ Program Using G++ With X86 Settings On X86_64?

Jan 25, 2010

How can I compile a C++ application using g++ with x86 platform settings on a x86_64 machine ? What are the possible negative side-effects of compiling a C++ application with x86 settings on a x86_64 platform ?

View 6 Replies View Related

Programming :: Compiling Libusb C++ Program To Run Without It's Dependencies?

Aug 6, 2010

I've built a piece of hardware that communicates using usb. I was wondering could I make a libusb based program run on it's own without gcc/ libusb

View 10 Replies View Related

Programming :: Compiling C Program For HPUX On IA/PA 64 Bits?

May 17, 2011

I had developed a C program on linux (x86). Now I need to port it to HP-UX OS on IA/PA 64 bit arch. What are the options to be used with cc compiler, on linux (x86), so that this could be done, if at all.

View 1 Replies View Related

Programming :: Error Compiling C++ Program Using C Library

May 8, 2010

I've created 3 files: swap.h and swap.c then make static library from it

Code:

Then I write 2 program to test this library: test_swap.c and test_swap.cpp

I compile

Code:

What's wrong with this in C++? And how can I make a library that can work both for any C and C++ program?

Here the source code

Code:

Code:

Code:

View 2 Replies View Related

Programming :: G++ Fails Compiling New Program / Make It Possible?

Jul 16, 2009

I am trying to compile systemc. Configuration is done OK and Makefiles are created. As soon as the "make" command i issue, recursively reaches the "utils" directory, errors are produced -declaration and include errors.

The files referenced by the errors DO exist and i hava managed to give g++ "-I ${LD_INCLUDE_PATH}, ie the variable, where all header dirs are listed. Libraries and compilers for gcc3.3 and g++3.3, i believe, are installed OK. code...

View 4 Replies View Related

CentOS 5 :: Compiling A Program With Blas And Lapack On 5.2?

Apr 20, 2009

I'm trying to compile a program on CentOS 5.2. It's giving the following error. Does anyone have a clue what it means?

/net/hulk/home4/tedhyu/openmpi/openmpi-1.1.1/install/bin/mpif77 -o quest_ompi.x lcaomain_tp.o utl_mpi.o lcaosubs_tp.o lcaosubs.o /project/source/seqquest/libs_32/scalapack-1.8.0/libscalapack.a /project/source/seqquest/libs_32/BLACS/LIB/blacsCinit_MPI-LINUX-1.a /project/source/seqquest/libs_32/BLACS

[code]....

View 5 Replies View Related

Ubuntu :: Compiling Libs Under A Different Directory

Feb 21, 2010

I am fairly new to ubuntu. I have to compile some libraries under ubuntu in a directory other than the default directory and then get the shared object libs (.so) libs for building some custome kernels. I created a directory structure as follows:

/home/username/build-target
/home/username/src-<libname> =>here are the source files for the lib. I need to compile

Now I create a directory /home/username/src-openssl and download the source code and untar it under this directory and issue ./configure --prefix=/home/username/build-target --exec-prefix=/home/username/build-target and then make and make install. I was expecting that the shared object libraries created (.so) files should have gone under /home/username/build-target/libs, however I just see only libssl.a and libcrypto.a and not .so files under the build-target/lib directory. For grep also I did the same thing as above however I don't see any lib directory created under build-target directory as I was expecting.

View 1 Replies View Related

Debian :: Force A Program To Use A Specific Version Of GTK When Compiling

Jul 15, 2010

I decided I was going to compile XChat from source today for "fun." What I ended up doing was spending a few hours getting it to compile, then find out everything didn't work the way I thought it did. I was under the impression that after I ran "sudo make install" I was "upgrading", when in reality I'm just installing a seperate version alongside the old one. Apparently I have to keep the old version so every program that was compiled with it will continue to work, so how do I:

1) Force a program to use a specific version of GTK when compiling.
2) Find where my version of GTK installed to.

I've asked some people and I've just been told to "learn LD_PRELOAD". I've googled and can't figure how I could even apply that to my current problem

View 3 Replies View Related

OpenSUSE :: Install Dropbox - Error Compiling Program ?

Feb 21, 2009

I tried to install dropbox on my openSUSE 11.1(KDE 4.0) from a tar.bz2. After i extracted it to a folder Dropbox in Desktop.

I got this error trying to compile.

View 9 Replies View Related

Ubuntu :: Compiling Program On New Server - Bunch Of Warning?

Feb 10, 2010

Having problems compiling a program on a new server. It compiles just fine on Ubuntu 8.0.4 server but a new install of the latest Ubuntu Server edition it throws out a bunch of warnings on configure. I am assuming I am missing some lib's or something of the sort.

Code:
checking for sys/select.h... yes
checking for sys/types.h... (cached) no
checking for unistd.h... (cached) no
checking for memory.h... (cached) no
checking crypt.h usability... no
checking crypt.h presence... yes
configure: WARNING: crypt.h: present but cannot be compiled
configure: WARNING: crypt.h: check for missing prerequisite headers?
configure: WARNING: crypt.h: see the Autoconf documentation
configure: WARNING: crypt.h: section "Present But Cannot Be Compiled"
configure: WARNING: crypt.h: proceeding with the preprocessor's result
configure: WARNING: crypt.h: in the future, the compiler will take precedence
checking for crypt.h... yes
checking assert.h usability... no
checking assert.h presence... yes
configure: WARNING: assert.h: present but cannot be compiled
configure: WARNING: assert.h: check for missing prerequisite headers?
configure: WARNING: assert.h: see the Autoconf documentation
configure: WARNING: assert.h: section "Present But Cannot Be Compiled"
configure: WARNING: assert.h: proceeding with the preprocessor's result
configure: WARNING: assert.h: in the future, the compiler will take precedence
checking for assert.h... yes
checking arpa/telnet.h usability... no
checking arpa/telnet.h presence... yes
configure: WARNING: arpa/telnet.h: present but cannot be compiled
configure: WARNING: arpa/telnet.h: check for missing prerequisite headers?
configure: WARNING: arpa/telnet.h: see the Autoconf documentation
configure: WARNING: arpa/telnet.h: section "Present But Cannot Be Compiled"
configure: WARNING: arpa/telnet.h: proceeding with the preprocessor's result
configure: WARNING: arpa/telnet.h: in the future, the compiler will take precede nce
checking for arpa/telnet.h... yes
checking arpa/inet.h usability... no
checking arpa/inet.h presence... yes
configure: WARNING: arpa/inet.h: present but cannot be compiled
configure: WARNING: arpa/inet.h: check for missing prerequisite headers?
configure: WARNING: arpa/inet.h: see the Autoconf documentation
configure: WARNING: arpa/inet.h: section "Present But Cannot Be Compiled"
configure: WARNING: arpa/inet.h: proceeding with the preprocessor's result
configure: WARNING: arpa/inet.h: in the future, the compiler will take precedenc

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved