1
vote
0answers
32 views

Developing 32 bit application and using it in 64 bit Ubuntu 14.04

I would like to develop 32 bit c++ applications on an Ubuntu 14.04, 64 bit machine and use it on both 32 bit and 64 bit machines. One of the main difficulties I face is that I use some library which ...
0
votes
1answer
56 views

CrossCompiling with libboost for ARM architecture

I am using a 32 Bit Ubuntu system and my goal is to compile my C++ program for arm architecture (beagleblack). However, my C++ program needs libboost meaning I get errors like this while compiling: ...
0
votes
1answer
138 views

Issues with importing existing source C++ code in Eclipse CDT

I have cloned an emulator's source code from git, and would like to work on it on Eclipse CDT on my Ubuntu 12.04. I have tried different ways, such as creating a hello world project, and simply ...
1
vote
2answers
54 views

How do I compile a C++ program I made in vim?

Whenever I type in g++ toe.ccp this comes up: /usr/bin/ld:toe.ccp: file format not recognized; treating as linker script /usr/bin/ld:toe.ccp:1: syntax error collect2: ld returned 1 exit status
0
votes
0answers
206 views

Cmake fails while configuring OpenCV

I'm trying to buid OpenCV and use it in Qt. I have installed all required packages for OpenCV and Qt, after that I tried too run cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ...
0
votes
0answers
28 views

What are differences in Ubuntu C++ programming and Windows C++ programming?

The getch() function has to be replaced by getchar() in G++ (or any other compiler for that matter) for successful compilation. I am new to Ubuntu, so I would like to know what are the other possible ...
1
vote
0answers
34 views

'__FDELT' and '__FDMASK' not declared in this scope (posix_types.h not included)

I'm running Ubuntu 12.04 LTS, 64bit version. I'm getting the following error when compiling a C++ program: ../elements/userlevel/socket.cc:477: error: '__FDELT' was not declared in this scope ...
1
vote
1answer
55 views

How to set /usr/bin/i586-mingw32msvc-g++ to gww?

I use cross compiling for C++ using MinGW... I use /usr/bin/i586-mingw32msvc-g++ filename.cpp to compile, but I want to be able to type gww filename.cpp I think I need to set a PATH ...
0
votes
0answers
271 views

g++ 4.8.2 on ubuntu 14.04 fails to compile source files

I'm really frustrated at present in that g++ is throwing up so many errors even on a simple .cpp file. I'm typing: g++ test.cpp at the command line. Thanks in advance for any help. I downloaded g++ ...
0
votes
0answers
115 views

Buliding and running NS-3 based program and doing all that trough Geany

everyone! Now, I wanted to set up my Geany so I can build, compile and execute any NS-3 based program instead of always using console way and compiling there the program and executing again in the ...
0
votes
1answer
202 views

ImageMagick linking error with libfpx.so: undefined reference to

I was trying to add support for the FlashPIX format in my own build of ImageMagick. In order to achieve this I downloaded the sources libfpx-1.3.1-3.tar.gz from the ImageMagick FTP server for ...
1
vote
1answer
129 views

c++ Programme compiled successfully but unable to run

I compiled the program using gpp it was done successfully but when I tried to run the program I got these errors:- I have included using namespace std; in 3'rd line harish@harish-Lenovo-G580:~$ gpp ...
-1
votes
2answers
87 views

compiling a c++ program

I tried to compile a cpp program through the terminal on 13.04 but got this message: npg@NPG-ideaPad-S210:~$ gcc -o comp-LCG.cpp The program 'gcc' can be found in the following packages: * gcc * ...
0
votes
1answer
3k views

g++ (4.6.1) does not recognize -std=c++11 [closed]

I'm trying to compiling a program (via Make) using g++ 4.6.1 with flag -std=c++11. It's giving me: cc1plus: error: unrecognized command line option ‘-std=c++11’ This is running on Ubuntu 11.04 ...
1
vote
0answers
173 views

How to build and run Concorde and Traveling Salesman Problem? [closed]

I need to use a library that is called Concorde to solve a well known problem called Traveling Salesman Problem. This library is available here I've downloaded and compiled it resulting in two main ...
0
votes
0answers
344 views

Linking a program with Boost using clang-3.4 and libc++?

I'm trying to compile a simple C++ test file using libc++ (instead of libstdc++) and the Boost Program Options library from the Ubuntu main repo. The program is as follows: #include ...
1
vote
1answer
5k views

Error : Cannot run C compiled programs. if you meant to cross compile use --host' Ubuntu

I'm completely new to Ubuntu I downloaded and unpacked a tar.gz package, after extraction, it is said in its documentation : "type ./configure --disable-gts" But when I run this command alone it ...
1
vote
0answers
3k views

Trying to compile Opencv C++ code getting some Reference error [closed]

do we have to give path for OpenCV in Ubuntu 13.04.If so Tell me that also ? This is code : #include "opencv2/opencv.hpp" #include "opencv2/video/video.hpp" #include "opencv2/highgui/highgui.hpp" ...
1
vote
1answer
265 views

What is changelog.Debian.gz file during packaging?

while packaging I encountered following error dh_builddeb dpkg-deb: building package `remotedevicecontroller' in `../remotedevicecontroller_1.0-1_i386.deb'. dpkg-source -b remotedevicecontroller-1.0 ...
0
votes
0answers
100 views

Not sure which IDE I should use for editing codes written in C [duplicate]

I am looking for an IDE which I can use to edit/compile/run C/C++ codes on my Ubuntu 13.04 installation. I have been checking the forum for information, and I found Anjuta being suggested by a few ...
0
votes
1answer
708 views

QT4/5 Creator cannot find -lGL

I installed the ubuntu mobile SDK a while ago on my ubuntu 13.04 machine via http://developer.ubuntu.com/get-started/ After a few days there appeared a compiler/linker error - even when compiling the ...
1
vote
2answers
695 views

Can't run program in Netbeans 7.3

I recently installed Ubuntu 12.04 and installed Netbeans 7.3 on it (not the Ubuntu version, directly from the website). I'm trying to run a basic C++ program that uses Allegro 5 but, even though it ...
2
votes
1answer
191 views

Autocomplete while compiling a file with c++ is gone

I am using Ubuntu 13.04 and have been programming mostly in C++. I use vim editor and c++ command to compile my .cpp file. What I have noticed is after typing c++ and pressing the Tab key, an ...
1
vote
0answers
248 views

How can I use Stroustrup's graphics libraries (Simple_window.h, Graph.h,…) in Netbeans

I'm reading and learning Bjarne Stroustrup's "Programming principles and practice using C++". I want to use graphics libraries from chapter 12-16 in Netbeans 7.3. I have already added header files ...
0
votes
1answer
454 views

Trying to compile Magic Set Editor

When I try to compile magicseteditor I get these errors: g++ -DHAVE_CONFIG_H -I. -I./src -I/usr/lib/i386-linux-gnu/wx/include/base-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 ...
1
vote
0answers
14 views

curl/types.h file or directory not found [duplicate]

I have a cpp code to compile but while compiling it is showing the error of curl/types.h file or directory not found, compilation error, fatal error. I am using ubuntu 12.10. please help me to fix ...
0
votes
3answers
1k views

Error while installing tiff-4.0.3

I get the following errors 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 ...
1
vote
1answer
1k views

How to compile a c++11 program using future in Ubuntu 12.04?

I'm trying to compile a c++ program in Ubuntu 12.04. I'm using g++ 4.7 (installed from a ppa). I'm using std::future, but I have an error. The code: $ cat main.cpp #include <iostream> ...
4
votes
3answers
939 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 ...
7
votes
2answers
4k views

Receiving error while trying to debug in QtProject

I installed the latest version of the QtProject so now I can debug C++ code. While trying to debug for the first time I got this error: ptrace: Operation not permitted. Could not attach to the ...
0
votes
1answer
2k views

OpenCV program won't compile (Quantal)

I am trying to compile a simple program using OpenCV in Ubuntu Quantal. I have installed all the OpenCV packages available. My code is the following #include <stdio.h> #include ...
4
votes
1answer
1k views

I can't compile a C++ program with the g++ command

If I try compiling my C++ source file by the following command: g++ a.cpp it outputs: The program 'g++' can be found in the following packages: * g++ * pentium builder try: sudo apt-get intsall ...
3
votes
2answers
6k views

Code::Blocks: g++ not found

Recently I have installed Code::Blocks IDE on my Ubuntu 12.10. The following error appears when I try to run or compile any code written in there: Compiling: /home/sabbir/first.cpp /bin/sh: 1: g++: ...
0
votes
1answer
5k views

How to fix a “/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found” error?

I've been getting this annoying problem. I want to compile a .so under Ubuntu using the Anjuta IDE. It compiles fine and all, but when I load it, that's when the error comes up: ...
2
votes
1answer
214 views

Compiling C++ in Ubuntu ( psa - Point Set Analysis)

I'm new in Ubuntu and trying to compile a C++ code on it. The code uses 2 dependencies (Cairographics and FFTW3). I have installed both of them using ./configure, make and make install in directory ...
0
votes
2answers
3k views

Underfined reference clock_gettime not solved by -lrt

I'm trying to compile the program the source for which is here. As per his instructions I'm compiling using the command g++ -O3 -lrt netmon.cpp -o netmon. I get this output: ...
0
votes
1answer
1k views

How do I build Allegro?

I'm trying to build allegro on 12.04 but it continues to give me error, I've downloaded the tar.gz folder of version 5.0.7 and installed cmake, what else do I need? And how do I proceed?
4
votes
3answers
4k views

Compiling C++ inside a folder in Ubuntu 12.04

I have some question about compiling .cpp inside a folder, it says first.cpp No such file or directory but when I run it in home it compiles. Any settings I might have left out? Thanks. Here's ...
1
vote
3answers
6k views

Eclipse not creating a binary file when building a simple program

I have a problem with linking and\or running a simple program in my eclipse. I'll try to first give a full description of the setup I'm using, to help identify the problem. Please notice that this is ...
7
votes
2answers
45k views

How to compile C++ source code (“iostream.h not found” error)?

I do not want to discuss about C++ or any programming language!I just want to know what am i doing wrong with linux ubuntu about compiling helloworld.cpp! I am learning C++ so my steps are: open ...
3
votes
1answer
3k views

Why does gsl-library not compile/link in 11.10, despite that it did under 11.04 with the same makefile and program?

I have a problem with the gsl library in Oneiric - after upgrade from Natty to Oneiric I cannot build a program anymore with my own makefile, despite the fact that in QT Creator everything works fine ...
1
vote
1answer
329 views

Problem installing qtbase [closed]

I am getting the following error when installing "qtbase" package for R: [ 68%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_1.cpp.o /home/mroot/qtbase/kdebindings-build/smoke/qt/x_1.cpp: In ...