C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

learn more… | top users | synonyms

0
votes
0answers
12 views

how to define the top dir in automake system?

I usually use a typical steps to generate the makefile, and firstly I use the "build.sh init" to generate the configure file, and then I use "configure" to generate the makefile with makefile.am file. ...
0
votes
1answer
38 views

Debugging with shell programming and cpp files?

I am having trouble understanding how my code is working. I am new to this project and never learned unix before. My coworker quickly showed me how to run the program but didn't explain how it worked ...
0
votes
1answer
28 views

How to edit Qt4 source and make changes apply

Sorry for noobish question, I have never done this before. Basically, I have a change to be done in /usr/src/qt/src/src/gui/kernel/qclipboard_x11.cpp There is a 10s timeout that causes apps to ...
1
vote
1answer
23 views

Common library for all linux distributions

I want to develop a C++ library that can be used on multiple Linux distributions like RHEL, Suse, Ubuntu etc... If I compile my source code into a .so (shared library) on one Linux environment(say ...
1
vote
1answer
29 views

open() return new file descriptor posix [closed]

I have to set the return values for open() in posix. How do I return "the new file descriptor" as it is said in the Linux man pages: RETURN VALUE open(), openat(), and creat() return the new ...
0
votes
0answers
19 views

How to solve these issues installing OIS?

I am trying to install OIS on Ubuntu 13.10 because I am trying to install orgre because I am trying to install FreeOrion. Anyway, here is the page I am following: link which fails in step 1.1 at the ...
2
votes
1answer
80 views

How to compile manual files .1

I have .c, .h, and .1 files, how can I compile them together in one executable file. Everything clear with .c and .h files, but I have also .1 as I can see from the content it is used for manual, how ...
2
votes
1answer
54 views

On linux, how to get “incompatible” i386 f77 libraries to work with current Fortran compilers, like gfortran?

I would like to run the elf32-i386 library libkernlib.a with a Fortran 77 program on my latest Ubuntu linux machine. From what I've read, gfortran is backwards compatible with Fortran 77, but I'm ...
4
votes
3answers
1k views

System(“pause”) in Unix?

I normally use a debugger such as cgdb so I thankfully hadn't needed to resort to system calls for debugging, until now. I have a binary that takes around 30 minutes to load in gdb and frequently ...
0
votes
1answer
112 views

Haskell, C++, AWK, Bash, Lisp … Which one is faster? [closed]

I was wondering, which of these programming languages are faster at handling big data files of only strings: Haskell, C++(Boost), AWK, Bash, Lisp... So far I have found the paper Haskell vs. Ada ...
0
votes
0answers
90 views

Unable to create gui in Qt creator

Till now I was creating GUI on windows using c++ on visual studio, now I decided to move on linux. So I install Qt creator from here . Now I follow a video tutorial for creating gui application with ...
0
votes
0answers
141 views

Debian wheezy C++11 source package

I'm currently learning debian packaging and I am making a source package for a C++11-based software. Debian wheezy does not have a 4.8+ g++ package, so how could I make a source package on this ...
4
votes
1answer
106 views

How to compile programs on Linux systems when I don't have sudo privileges to install the dev dependencies [duplicate]

How should I go about compiling programs that depend on libraries whose development packages (headers and such) aren't pre-installed on the system when I don't have sudo access? In this particular ...
3
votes
1answer
646 views

VIM as c++ IDE - autocomplete

I'm still learning C++, but I know already some stuff. I used to use Visual Studio, but after I switched to Debian, I was working with Code Blocks. Recently I heard about using VIM as IDE and started ...
0
votes
4answers
226 views

Compiling C/C++ code by way of including preprocessor build instructions in an actual C/C++ source file

So here's the thing, and it's really just conceptual so don't let it bug you: I've got reasons for not wanting to rely on a specific build system. I don't mean to dis anybody's favorite, but I really ...
2
votes
2answers
187 views

how to add curlcpp to the library/include path?

I'm using Arch Linux and have successfully built https://github.com/JosephP91/curlcpp However, I have no idea how to build the example program. I keep getting fatal error: curl_easy.h: No such file ...
3
votes
1answer
33 views

How to configure my enviorment in such a way that a proper (different from the system one) version of library is used

I guess that this question is a borderline between ServerFault and StackOverflow and this site. But I think that U&L is most relevant. I have some C++ code that depends on a library in version X ...
2
votes
2answers
182 views

What is the best tool for automating the building 32-64bit libraries for Unix & Windows building C++ software, replicable by users and machines?

Is there a system or product that can be used in automating the process of building 32bit and 64bit libraries for multiple platforms (Solaris (Sparc & x86), and windows) used in building C++ based ...
1
vote
3answers
1k views

libstdc++.so.6: open failed: No such file or directory

I'm trying to run my first C++ program on Solaris. Just a simple Hello World program. When I try to run. I get the error libstdc++.so.6:open failed:No such file or directory. Of course I did some ...
2
votes
1answer
513 views

Finding dependencies for a compiled C++ program

I wrote and compiled a C++ program using Qt Creator in Ubuntu 13.10 (32 bit). I tried to run the compiled program in a newly installed Ubuntu 13.10 (64 bit). But it is not run. I think the problem is ...
0
votes
2answers
7k views

conio.h file missing error [closed]

I want to execute a .cpp file while contains the #include <conio.h> header file, but while executing I'm getting the following error: "program.cpp:4:20: fatal error: conio.h: No such file or ...
0
votes
0answers
135 views

Compiling sample SFML program problems

I'm trying to compile the first sample program that comes with sfml on Fedora. First it told me that I needed to link all of the libraries properly but then I got it all configured and now I'm stuck ...
0
votes
1answer
46 views

Compilation error on fedora 14

I installed fedora version 14 using virtual box but when I try to compile a program then displayed command not found. After that I tried to install g++ compiler using commands but, the way I followed ...
2
votes
1answer
474 views

How to detect global key presses

I have an Asus laptop that has a special key that can be configured to launch any software (at least on Windows). The general question is: how can I detect any key press (globally)? Then, how ...
2
votes
0answers
319 views

sudo apt-get install g++-4.8-multilib not working on Mint?

I've got the latest version of Linux Mint 16 (64 bit) and in Netbeans I am compiling a project in 32 bit mode. I get the error that I am missing bits/config.h. I think this is because I am in 32-bit ...
-2
votes
1answer
81 views

How to compile c, c++ and python code as “Released/Final” version? [closed]

I want to know if there are ways to compile C, C++ and Python code in order to not be able to reverse engineering it over Linux or not? I have heard there are some ways over Windows to do it, but I ...
2
votes
1answer
214 views

Auto indent C++11 lambda functions Vim

Is there any way to get Vim to auto indent C++11 lambda functions correctly? I have tried many different permutations of smartindent, cindent, etc. in .vimrc.
1
vote
2answers
56 views

Slight change to command to compile C++ program causes error

This morning , I was trying to compile a C++ program using the following command on the command line g++ -o foo.cpp foo I spend about an hour trying t to resolve why I kept getting undefined ...
2
votes
1answer
610 views

Running a process multiple times at the same time

I have a c++ program with opencv library which takes an image as input and perform pose estimation,color detection,phog. When I run this program from the command line it takes around 4-5sec to ...
1
vote
0answers
489 views

Debian init.d with a working C++ daemon, unexpected results

I am fairly new to programming for Linux, and init.d scripts, and I have a problem with my init.d script adapted from an example I found via a lot of google searching. Instead of getting a status, ...
0
votes
2answers
526 views

Is there a newer version of gcc in red hat?

I use Red Hat Enterprise in my school and I want to compile some c++11 code but the gcc --version is 4.4.7 which is not compatible. Is that one the latest version in the red hat repositories? is there ...
1
vote
0answers
74 views

Stanford's StanfordCPPLib on Linux

I'm using SUSE Linux 13.1 and self studying Stanford's CS 106B course. Here I have found the following zip file, cs106b-hw2-ngrams-starter-files.zip, and downloaded. Now questions This libs are for ...
2
votes
1answer
3k views

How to uninstall BOOST 1.49 and install BOOST 1.54 in ubuntu?

I have a boost 1.49 in my ubuntu system. And I am trying to uninstall boost 1.49 and completely remove it from my system. And after that install the Boost 1.54.0 I did like this to uninstall 1.49 ...
2
votes
0answers
164 views

Trouble embedding clang in a standalone application

I am running Ubuntu 13.04 on my end and I have installed clang as well as libclang-dev and llvm (through apt). I tried hard to run RecursiveASTVisitor example given here:- ...
0
votes
1answer
66 views

Squeeze/Lenny compilation : Library Link error

I've got a problem here : I have a C++ Library ("DataTsBroad") and a C++ Test app ("DataTsBroadTest"), to test it. Actually, the Lib and the Test app are both compiled an a Debian Lenny. Now, i ...
0
votes
1answer
496 views

How to set g++ 4.8 to be the default after installing? [closed]

After executing the following on Ubuntu 12.10 how do I set 4.8 to be the default C++ compiler? sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.8 ...
1
vote
1answer
147 views

best programming language for I/O intensive tasks [closed]

I need to process "big data" (nearly 1TB which can be partitioned into smaller chunks). Consider several programming languages (Java, Python, C++, Perl) and other scripting options (Perl, awk, sed, ...
0
votes
1answer
154 views

Python error after installing libboost-all-dev on debian

A friend of mine wanted the libboost libraries installed on our shared computer so after installing libboost-all-dev 1.49.0.1 (a Debian wheezy machine), I get this error when using the "pydoc modules" ...
1
vote
0answers
220 views

How to install gcc 4-8 on #! Waldorf 64-bit?

I would like to install and use g++ 4-8 compiler. It supports various C++11 features, and I am willing to look into them and use them. Also, as I came here from Windows, my previous files also used ...
0
votes
1answer
453 views

Debug program in eclipse with a newly built compiler

I recently tried to build the new version of GCC (4.8.1) on Ubuntu 12.04. I managed to build everything correctly, it passed the tests and I installed the new compiler. I can build programs with the ...
0
votes
2answers
689 views

GCC compilation - where the __stack_chk_fail@GLIBC_2.4 symbol comes from?

I'm using GCC 4.7.2 from devtoolset package on CentOS 5 (CentOS 5 because we need compatibility with old Linuxes, and GCC 4.7 because it optimizes better than 4.4). There is one symbols that prevents ...
2
votes
2answers
2k views

ethtool get permanent MAC address returns all 0's

I need to read permanent (burned-in) MAC address of network adapter. Since MAC address can be easily spoofed, I need to read the real one which is written on EEPROM. I need to do it using C++ on ...
2
votes
2answers
77 views

uXlib.h Which package have this lib file?

I am getting an error uXlib.h not found while compiling a program, written in c++ I think the lib file is related UIM/X from the following link motif.ics.com/sites/default/files/ReferenceManual.pdf‎ ...
1
vote
1answer
113 views

continuous testing of a C++ project on github with different Linux distros

Is there any framework to automatically try to compile a C++ project on github.com on every commit made, similar to what http://jenkins-ci.org or http://travis-ci.org do for different compilers on an ...
1
vote
1answer
63 views

which distributions to test for successful compilation? [closed]

I've got a package written in C++ using boost libraries and a bunch of helper scripts, and I want to make sure it's easy to compile for most Linux x86_64 distributions. It uses cmake and downloads the ...
2
votes
1answer
780 views

How to install CLang using precompiled binaries? [closed]

How do I install CLang on Ubuntu, using precompiled binaries of CLang that I downloaded? Here's how I downloaded CLang: "LLVM Download Page" -> "Download LLVM 3.2" -> "Clang Binaries for ...
2
votes
0answers
428 views

Stereo capture with v4l2

I am trying to capture images from 2 cameras using the driver v4l2. I want to capture them at the same time so I use threads with conditions to start the capture at the same time. The problem is that ...
10
votes
1answer
9k views

Difference between Cross GCC and Linux GCC toolchain

While creating new C++ Project in Eclipse, I am being asked about toolchain. What is the practical difference between these toolchains - Cross GCC and Linux GCC. In what circumstances use them? Does ...
-3
votes
2answers
313 views

Using file system call

I'm trying to learn system calls for open,write and close a file. I use this sample and the result is: gcc: error trying to exec 'cc1plus': execvp: No such file or directory Here's my program: ...
0
votes
1answer
94 views

How to manually install a cpp library

I want to install the opengl sdk http://glsdk.sourceforge.net/docs/html/pg_build.html . I successfully built it but it has no install script. I am wondering where I have to put them in order for ...