The GNU Compiler Collection is the standard compiler system used on many Unix-like operating systems, including Linux. Originally meant for compiling C programs, it can now also handle C++, Java and several other languages.
0
votes
0answers
132 views
ns-2.28 installation problem in ubuntu-12.04
I have installed gcc41-compat-4.1.2-ubuntu1210_i386.deb and g++41-compat-4.1.2_i386.deb and then reboot. After that I have done following:
tar xvf ns-allinone-2.28.tar.gz
patch -p0 < ...
0
votes
0answers
88 views
gfortran dependency hell
I was trying to install an R package which said it couldn't find -lgortran. So I uninstalled gfortran. However, when I tried to install it again, I got the following error
gfortran : Depends: ...
4
votes
1answer
4k views
How to add the ncurses.h to a C++ program compiled on gcc?
I am totally new to C++ programming on gcc. I wanted to add color to my text on the output on the console. Since there is no conio.h on linux, I researched and found that ncurses.h could do the trick. ...
1
vote
1answer
64 views
What gcc version do I need?
I have installed ns-2.28 on ubuntu 12.04. My kernel version is 3.2.0-29-generic-pae.
What gcc version matches my ns-2.28 & 3.2.0-29-generic-pae?
1
vote
2answers
119 views
gcc Unable to exec gcc.real: No such file or directory
./configure
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/mob/freeglut-2.8.0':
configure: error: C compiler cannot create executables
See ...
1
vote
1answer
494 views
/bin/sh: 1: arm-linux-gnueabi-gcc: not found
I'm working on eclipse indigo on Ubuntu 12.04. And I'm trying to cross compile so I downloaded gcc-4.4-arm-linux-gnueabiarm-linux-gnueabi-4.4 and I changed the C/C++ Build setting and I added includes ...
3
votes
3answers
572 views
Cross-compilation issues with GCC/G++
I am using gcc to compile a C++ application on my CI server (http://ci.berboe.co.uk) and as the vps that it is compiled on has the x86-64 architecture I need to cross-compile to get the compiled ...
0
votes
1answer
329 views
gcc and g++ are installed but ubuntu says they are not installed
I have installed g++ and gcc from repository on ubuntu 12.04 ad you can see that they are indeed installed
mahmood@pc:~$ dpkg -l | grep gcc
ii gcc-4.4 4.4.7-1ubuntu2 ...
8
votes
1answer
158 views
How can I get GCC 4.7 installed on Precise?
The latest version of GCC in the Precise archives is 4.6.3. However, GCC 4.7 adds support for some newer C++11 features (like delegating constructors). Quantal's package archives have GCC 4.7.2 ...
4
votes
2answers
261 views
How do I compile/run C++ code in the console?
I'm trying to run my C++ code using the console. I used the header file conio.h like I did when I used Turbo C++ IDE in Windows, and I ran the code in console using
g++ filename.cpp
I have ...
1
vote
1answer
278 views
How to install a gcc specific version on Ubuntu?
I'd like to install old versions of gcc on my Ubuntu Lucid machine. Particularly, I am interested in the 2.95.3 or 3.0.2 version.
Is there any repository to download this package from using apt-get ...
4
votes
1answer
759 views
Cross-Compile for ARM?
How do I set up GCC for cross compiling for the ARM processor?
The host would be on x68 ( AMD64 - Ubuntu 12.04 ) and the target would be ARM ( Raspberry Pi as well as Pandaboard - will do separate ...
0
votes
0answers
74 views
GCC error message: gcc-4.6: not found (hardened-cc could not find target)
Evening my friends. I have a question for you, because I know that you can help me. I got an error when I want to compile (or something like that) with this command:
gcc-4.2 -O -fbuiltin ...
1
vote
1answer
72 views
Restoring gcc and g++ flags
I've recently done something really stupid: I wanted to configure NetCDF libraries using the Intel Fortran compiler and, therefore, I was following instructions for that kind of procedure.
...
1
vote
1answer
70 views
linking cpp object file to c object file and create executable
Suppose i have a c++ file, created an object file and c file created another object file.
Now i need to link both into one executable. While i'm trying it is giving errors about c++ not found.
Can ...
4
votes
2answers
40k views
Install gcc on Ubuntu 12.04 LTS
When I try to install gcc on Ubuntu 12.04 LTS Server with apt-get install gcc, I get the following error:
The following packages have unmet dependencies:
gcc : Depends: cpp (>= 4:4.6.1-2ubuntu5) ...
0
votes
0answers
45 views
Why gcc in 64 bit ubuntu doesn't detect the following array overflow? [closed]
So my code is
#include <stdio.h>
#include <string.h>
main()
{
char *a="123456789abcdef";
char b[10];
int i=0;
while((b[i]=a[i])!='\0')
++i;
printf("%s ...
0
votes
0answers
158 views
compile problem in ubuntu12.04
when I compile g77 programs it comes out like this:
g77 -g -C -o remodl remodl.o emiasp91.o libtau.a libsun.a
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find ...
0
votes
0answers
153 views
Compilation with libopenmpi-dev errors on 12.04 LTS
I have installed package mpi-default-dev 1.0.1 with libopenmpi-dev 1.4.3-2.1ubuntu3 as dependency.
When I tried to compile code with -Wall flag I got compilation errors:
In file included from ...
1
vote
1answer
1k views
How to install GCC 4.7 on Lubuntu 11.10?
I installed Lubuntu 11.10 and I installed build-essential with this command:
sudo apt-get install build-essential
Now I have gcc 4.6
I read on some forum that adding the next PPA I'll be able to ...
-1
votes
1answer
59 views
what is use of gcc flag -Wall [closed]
can some one help me to understand the use of -Wall flag in gcc? I am working on make file and not able to understand this flag.
Thanks,
vivek
3
votes
4answers
1k views
Can I use a C/C++ compiler?
I shifted to Ubuntu 10.10 now I am facing problem to have C/C++ compiler. What are the possible ways so that I can use C/C++ compiler using all the libraries (like graphic, math, conio, stdlib, etc) ...
0
votes
1answer
929 views
apt-get gcc 4.7 multilib
I followed the instructions from @jokerdino here in askubuntu
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7
But to get a successful ...
1
vote
2answers
1k views
0
votes
1answer
143 views
error while compiling speech_tools can not find -lcurses
I get the following error when compiling speech_tools.
/usr/bin/ld: cannot find -lcurses
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[1]: *** [ch_lab] Error 1
make: ...
1
vote
2answers
640 views
Installing missing package that provides Xm/Xm.h
I'm compiling a software package that requires a header file. The header file is missing from my Ubuntu 11.10 (64-bit) installation. During the compilation using make, gcc and gfortran, I receive ...
2
votes
4answers
849 views
How do I install ALL development libraries?
I want to preinstall all the libraries one could ever need onto a system so someone building something would always have the libraries available.
Like in a computer lab where users are not root.
I ...
0
votes
0answers
25 views
What to do when linking fails?
I have a problem with gcc. I am trying to work with boost program_options and the simplest example:
g++ /usr/share/doc/libboost1.49-doc/examples/libs/program_options/example/first.cpp -o /tmp/o ...
3
votes
1answer
113 views
Can't find new.h - getting gcc-4.2 on Quantal?
I've been trying to compile the Valve Source SDK (2007) on my machine, but I keep running into the same error:
In file included from ../public/tier1/interface.h:50:0,
from ...
0
votes
2answers
187 views
How to check gcc is installed correctly?
I have installed gcc with apt-get. How can I check that it is installed correctly and which version ?
Thanks
0
votes
1answer
106 views
Error while compiling c program using gcc <filename.c> thru the CLI
Whenever I try to compile a c program thru CLI using gcc , I get the error: "gcc: error trying to exec 'cc1plus': execvp: No such file or directory". I'm using Ubuntu 12.04. Also, "sudo apt-get ...
0
votes
1answer
2k views
gcc compiling error for c++ program
When I'm trying to compile a C++ program with gcc, it gives me following error:
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
0
votes
1answer
543 views
Make mex compiler of matlab working on mint?
Mex compiler of matlab does not work with following error
Warning: You are using gcc version "4.7.2-2ubuntu1)". The version
currently supported with MEX is "4.4.6".
For a list of ...
0
votes
2answers
166 views
Issue installing *gfortran*
I am trying to installing gfortran on my ubuntu system and I am following the steps mentioned in http://gcc.gnu.org/wiki/GFortranBinaries32Linux , unfortunately one of the step in the installation ...
1
vote
0answers
328 views
How do I install/compile CORSIKA & FLUKA for 32-bit Ubuntu 12.04?
I want to use some programs (CORSIKA and FLUKA) which are essentially designed for 32 bit systems.
I've installed the 32-bit version of 12.04 on my system (Intel® Core™ i7-2700K CPU @ 3.50GHz × 8).
...
1
vote
2answers
2k views
How to cross-compile programs for the Raspberry Pi with gcc?
I am fond of using gcc to compile small little C and C++ programs on my main computer. However, I also have a Raspberry Pi, and, being a 700-MHz single-core computer, I would prefer to not have to do ...
4
votes
1answer
237 views
How to build a particular version of gcc (4.5.1)?
In my office we have gcc-4.5.1, with that version my c++ project works fine.
If I compile the same project at home with Ubuntu 12.04 with gcc-4.6, I have lot of errors and I couldn't compile at all. ...
0
votes
1answer
114 views
Can't Compile A Simple C Program
I installed the last version of Ubuntu. I tried to compile and run simple c program. I was get error:
fatal error: stdio: No such file or directory
I installed and updated gcc compiler few times, ...
1
vote
1answer
285 views
How to solve the link library problem -lgcc_s
I am trying to compile a script with GCC on my Ubuntu system and get this error:
/usr/bin/ld: cannot find -lgcc_s
How can I fix this problem?
0
votes
2answers
119 views
How can I install dpkg-dev without installing gcc 4.6?
I have manually installed gcc/g++ 4.7 on my Ubuntu 12.04
When I run sudo apt-get install dpkg-dev it's trying to download and install g++ 4.6 which would obviously break 4.7.
How can I install ...
2
votes
1answer
1k views
GCC compiler errors with “No such file or directory”
My Ubuntu version is 12.04 LTS. I have written some C programs. But there is a compiler-problem. I've googled and found that I need build-essential. So I download and installed it.
After ...
2
votes
2answers
367 views
Are libc versions tied to kernel versions?
After reading the answers to my previous question I have come to the conclusion that an answer to the following question is what I was actually looking for:
Does a particular version of the kernel ...
1
vote
1answer
3k views
How to use GCC 4.7 in place of 4.6 (Ubuntu 12.04)
So I'm working on a project and I wanted to use some C11 features for C. To use those features GCC 4.7 is required, so I went to synaptic and looked up 4.7, and I found the packages gcc-4.7-base so I ...
1
vote
0answers
318 views
Ubuntu 11.10: Downgrade GCC-4.6 into GCC-4.1.2
I would like to build GCC-4.1.2 in Ubuntu 11.10 32bit (currently works well with GCC-4.6).
The "make" stage shows error relating to header files:
...
/usr/include/features.h:323:26: error: ...
0
votes
2answers
4k views
How to uninstall gcc 4.6.2
I have gcc 4.6.2 installed (installed from tar source) in my ubuntu server 10.10 64 bit, I have also installed gcc 4.4.5. I want to uninstall gcc 4.6.2 and make my old gcc 4.4.5 default. How can I do ...
0
votes
0answers
1k views
g++ not found in PATH [closed]
I read Eclipse Juno C++ error: Program "g++" not found in PATH
But I am not sure what I should do. I have installed g++ and gcc (using mint) and he says I should add the PATH variable in ...
2
votes
2answers
3k views
gcc -m32 cannot find libraries
Both 32 and 64 bit compiles worked and then I upgraded from 11.10 to 12.04. Now -m64 works but -m32 can't find libraries.
I've tried reinstalling libraries, and gcc-multilib but no joy. Anyone spot ...
2
votes
1answer
2k views
How to install zlib libgcrypt using apt-get?
When I do dpkg -i
I see zlibc and libgcrypt11 in the installed applications' list.
But when I compile a c program having <zlib.c> or <gcrypt.c> it gives this error:
no such file or ...
1
vote
0answers
3k views
GCC 4.8 Installation? [closed]
What is the best way to install GCC 4.8 in Quantal Quetzal (12.10)? I am trying to explore it's improved diagnostic messages and compare them to Clang, so 4.7 will not do.
gcc-snapshot from the ...
1
vote
1answer
204 views
Differences in compiling between gcc 4.4 and gcc 4.6?
I just moved from RH (CentOS 6) with gcc 4.4.6 to Ubuntu 12 with gcc 4.6.3. I have a program that references a third party library. I have successfully build and installed the library on the Ubuntu ...







