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

learn more… | top users | synonyms

3
votes
1answer
574 views

libstdc++.so.3 => not found on CloudLinux, no SuperUser permissions, seemingly in chroot.

I am trying to install the Linux x64 BOINC command-line interface client on a CloudLinux machine with x86_64 Architecture. When I try to run the executable I get an error: ./boinc: error while ...
1
vote
2answers
371 views

Testing C++ code with bash commands

I've read a programming problem and then I wrote code for it. But I thought my algorithm was not working right, so I wrote another piece of code that it was not optimal but, I think, correct. Now I ...
2
votes
1answer
269 views

Can Qt SDK be used for development on any Linux distro?

Fisrt of all I am a Windows developer guy but really like Linux. On Windows, Visual Studio provides an excellent IDE for C and C++ development. The only other IDE and toolkit I like is the Qt SDK and ...
0
votes
1answer
274 views

Is it possible to preload glibc?

One of my client runs a glibc-2.7 based system , and my static linked program wasn't able to start on the target machine, raising an error: ...
1
vote
2answers
2k views

moc command not found?

On my Gentoo systems I've never had a problem with this and I run moc as I run any other command in the terminal. I recently switch to Fedora 15/16 and notice that running moc doesn't work. I get ...
5
votes
3answers
3k views

Most common encoding for strings in C++ in Linux (and Unix?)

For creating a C++ program that is source code level portable between Windows and Linux and handles internationalization well, there are IMHO three main encodings to consider: The encoding of the ...
8
votes
1answer
2k views

While there is C++ why most of Linux programs are written in C?

Why most of linux programs are written in C? Why they are not written with C++ which is newer than C?
2
votes
3answers
194 views

Optimizing c++ compiliation for a specific machine

I am programming a code to simulate a membrane which will run on computation cluster (single node). I want to optimize the code for that machine. I have used the -optimize, -O3 and -march=core2. How ...
4
votes
2answers
685 views

list header files used by a project compiled with gcc along with hierarchy

I currently have a C++ project that spans two different source control systems. Without checking in the full complete source code from the first system into the second system I plan to check in just ...
1
vote
1answer
914 views

How do I make a multi-threaded app use all the cores on Ubuntu under VMWare?

I have a multi-threaded C++ app (using pThreads) that processes a massive flat file that works great on Windows - uses all four cores on my puny CPU. Client wants to run the same code on Red Hat on a ...
6
votes
1answer
304 views

Why would one want to compile multiple .cpp files to the same executable?

Why would you do g++ -Wall -I/usr/local/include/thrift *.cpp -lthrift -o something instead of: g++ -Wall -I/usr/local/include/thrift -c Something.cpp -o something.o g++ -Wall ...
3
votes
2answers
329 views

What does this Linux command do?

g++ -Wall -I/usr/local/include/thrift *.cpp -lthrift -o something I am new to Linux and am trying to learn "as I go along"....This is from the Apache Thrift website. Also is the -I/usr supposed to ...
0
votes
1answer
3k views

how to Update gcc of OpenSuse 11.2?

I have OpenSuse 11.2 with gcc version 4.4.1. I would like to update my gcc version to 4.5.1. I have downloaded gcc-4.5-19.1.i586.rpm. When I rpm install it, it's asking for ...
1
vote
1answer
2k views

“Permission denied” for running an executable file on a linux machine

I once generated an executable file using g++ on a linux box. But when I try to run this executable file on another linux machine, the system said "Permission denied". However, after I re-compile the ...
2
votes
2answers
2k views

How to use STL in unix and linux?

How to use STL(standard template library) in HP-Unix . How to compile and run the program with STL functions?
1
vote
1answer
261 views

Recording and charting boot process information in Linux

I need to write a command line tool that records the boot process information in Linux, and then renders it in a chart format (a textual chart would do). How do I programmatically obtain the this boot ...
1
vote
3answers
676 views

What libraries are there for reading/editing ID3s of mp3?

I think the title says it all. I need a library to allow me to read and edit ID3 Tags from C++ in Linux. Suggestions?