Tagged Questions
0
votes
0answers
10 views
Multiple undefined references using FFMPEG libs
I installed FFMPEG libraries and headers as it is described here .
In my C++ application when I compile (gcc) I am getting this :
/usr/local/lib/libavcodec.a(libfaac.o): In function
...
1
vote
0answers
76 views
Problem with /usr/bin/ld: main.o: undefined reference to symbol 'exp@@GLIBC_2.2.5'
During installation Emerald in ubuntu 13.04 when I write "sudo make" I have problem:
libtool: link: gcc -g -O2 -pthread -I/usr/include/libwnck-1.0 -I/usr/include/compiz -I/usr/include/gtk-2.0 ...
3
votes
1answer
940 views
How to compile & install Emerald window manager in Ubuntu 13.04 64bit?
Please give me directions to compile & install Emerald specifically in Raring Ringtail 64bit edition. I've tried to compile it from the source many times, but had no luck.(Compile log : ...
0
votes
1answer
46 views
Installing proxychains. HELP NEEDED! [duplicate]
OK so i am new to linux. I am trying to install proxychains but im sure it has dependencies that i do not have on my system can somebody look at the following script and tell me the list of packages i ...
2
votes
1answer
52 views
How to repair a broken compiler?
Few months ago I was using gcc 4.6. In order to get C++11 functionality I upgraded to gcc 4.7 using a PPA. Today gcc 4.7 was recommended to me through the update manager. I just mindlessly clicked ...
1
vote
2answers
465 views
Building GCC 4.8 on Ubuntu 12.04
I am trying to install GCC 4.8 on Ubuntu 12.04, but during make I get the error shown below where compilation aborts. (To the best of my knowledge I have all prerequisites satisfied as I have already ...
0
votes
0answers
45 views
activate custom CFLAGS & CXXFLAGS on dpkg-buildpackage system (for firefox20 build)
i need activate -O3 -march=native -mtune=native options on CFLAGS CXXFLAGS.
now i cant this on dpkg-buildpackage. system using its own settings.
1
vote
1answer
81 views
Cannot find -lgfortran
I'm trying to install a package in R (package "ks"). It fails with error message:
/usr/bin/ld: cannot find -lgfortran
I've already installed the Ubuntu package build-essential:
sudo apt-get ...
4
votes
1answer
110 views
warning messages while compiling c program using gcc [closed]
I am new to linux. I use gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 on Ubuntu 12.04 LTS. When I compiled the c program using pointer, I got the -Wformat warning as shown below. But if I execute a.out ...
8
votes
2answers
296 views
Can't compile with GCC on Ubuntu 12.04
I'm trying to compile and run the below C program on my Ubuntu & Windows machines with both GCC & VC9. However, I'm facing below issues:
On Ubuntu machine:
GCC compiles fine, but when run, ...
1
vote
2answers
62 views
How to fix compilation errors that mention “stray ‘\342’” and “stray ‘\200’”?
I wrote this program:
#include<stdio.h>
int main()
{
printf(“Hello World\n”);
return 0;
}
I saved it as first.c and tried to compile but receiving this problem I have installed even gcc ...
0
votes
1answer
218 views
Error while installing tiff-4.0.3
pranav@pranav-Inspiron-1545:~$ cd dependency/
pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf libtiff4-3.6.0-5.tar.bz2
usr/bin/cygtiff4.dll
pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf ...
0
votes
1answer
64 views
Scanalyze install
I am trying to install Scanalyze.
I downloaded the source code, and in the compilation instructions for Ubuntu, he has mentioned that for later versions of gcc (mine is 4+), there is a separate ...
4
votes
2answers
253 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 ...
3
votes
3answers
522 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 ...
4
votes
1answer
658 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 ...
1
vote
1answer
69 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 ...
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
155 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
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 ...
0
votes
1answer
527 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 ...
1
vote
1answer
199 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 ...
1
vote
0answers
325 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).
...
0
votes
2answers
592 views
Is It Possible To Compile GCC.4.7.1 On Ubuntu 10.04 Manually? [closed]
I'm trying to update my gcc to latest version but I'm using an older variant of Ubuntu 10.04 (Backtrack 5 R3). What should I do? Can I add repositories and then apt-get update to get new files ? Or ...
1
vote
2answers
218 views
Why does “pkg-config” print only a blank space with the “--cflags” option?
I installed libcurl using :sudo apt-get install libcurl4-openssl-dev. When I try to compile my program I read that we have to pass where libcurl is located to the GCC compiler(although for me its ...
2
votes
1answer
994 views
Can not compile any C code under Xubuntu
I am not a seasoned C programmer, but I compile some C code sometimes.
The last time I successfully compiled and run some C code I did it on the same system that I have now (the very same OS on the ...
-1
votes
2answers
291 views
How do I create a deb for GCC 4.7?
I'm sorry but I have tried the tutorials on various websites. Nothing, so far, has worked. I'm using Ubuntu Maverick 10.10. I've downloaded, compiled and installed GCC 4.7.0. Now I want to make a .deb ...
1
vote
3answers
311 views
Is gcc portable between all 64 bit linux machines
I'm doing work remotely by connecting to a Linux terminal with ssh. The machine I'm connecting to is a 64 bit x86 Linux machine. My computer is also 64 bit Ubuntu machine with an x86 processor.
I ...
0
votes
0answers
82 views
How do I install gcc 4.7.0 from source? [duplicate]
Possible Duplicate:
How to update gcc to the latest version(in this case 4.7) in Ubuntu 10.04?
How do I install tar bz2 and gz files?
I'm new user in ubuntu & I wonder if anyone can ...
3
votes
1answer
946 views
How to speed up compilation of Ubuntu apps (make, cmake, gcc)
I am compiling some programs here and I have 4 cores. Is there a way to tell make, cmake or gcc to compile using all cores or something to that affect.
0
votes
1answer
595 views
Messed up gcc/build-essential - how to revert?
I have some strange problems regarding my build setup... acutally I am trying to compile
#include <stdio.h>
int main()
{
printf( "Hello World!\n" );
return 0;
}
By running
gcc -o ...
5
votes
4answers
5k views
Can't build gcc anymore since upgrade to 11.10
On Monday I've upgraded to from Ubuntu 11.04 (my initial installation) to 11.10 and now I can't build gcc from source anymore. Since I forgot to uninstall the gcc package before the upgrade, Ubuntu ...
1
vote
2answers
1k views
Building a static version of Python?
I tried asking this question at StackOverflow, but the dead silence that followed made me wonder if some more Ubuntu-specific expertise might be required.
I am trying to build a static version of ...
1
vote
2answers
1k views
Compile 32 bit on 64 bitsystem
I'm trying to compile a 32 bit version of python on a 64 bit ubuntu system with the following configure command:
CC="gcc -m32" LDFLAGS="-L/lib32 -L/usr/lib32 \ -Lpwd/lib32 -Wl,-rpath,/lib32 \
...
1
vote
2answers
656 views
How can I upgrade sqlite3 to at least 3.4.2 (or newer)?
When I try to run sudo apt-cache showpkg sqlite3, I only get the version 3.4.2. I need later than that to compile the sqlite3-ruby gem, and I can't make from source files (even with a ./configure ...
5
votes
2answers
765 views
How can I get gcc to write a file larger than 2.0 GB?
I wanted to recompile 'xxd' (written in C), so I installed CodeBlocks as the IDE.
All seemed to go well unil I discovered that I couldn't write past the 2.0 GB barrier...
I've read that 'gcc' ...
3
votes
1answer
150 views
How to redistribute binary programs built on modern Ubuntu so that they can be executed on any older Linux system?
I found that if I build any binary on Ubuntu 10.10, then it doesn't execute on some older Linuxes. It is because Ubuntu uses a very new C library, called EGLIBC. Most of the desktop Linux systems use ...
