C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.
1
vote
1answer
29 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 ...
0
votes
0answers
32 views
Creating and writing to an UTF-8 file with C++ [migrated]
I have to create a m3u8 playlist in my http streaming C++ server code. m3u8 is nothing but UTF-8 m3u file.
How do I create an UTF-8 file (i.e. how to write UTF-8 characters to a file)? Maybe with ...
-3
votes
2answers
66 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
37 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 ...
0
votes
1answer
164 views
How to update the version of gcc-c++ on Fedora?
I have version 4.4.4 of gcc installed and would like to update to either a specific version or to the latest version. Here is what I have tried:
sudo yum install gcc-c++
this tells me that Package ...
1
vote
1answer
87 views
How to set clang++ as the c++ compiler?
I'm trying to set clang++ as the system C++ compiler on Fedora 18. I have installed clang and added it to alternatives but it doesn't appear to be working.
[user@localhost ~]$ alternatives --display ...
1
vote
1answer
58 views
Communication to device is lost when network starts on boot up?
I have an application that opens a socket on port 4444 to a device (/dev/linkToDevice). The "linkToDevice" is a link to ttyUSB0. The application is a c++ program of which is now a daemon and runs at ...
1
vote
1answer
94 views
Set up proper programming environment
I'm starting to think how to set up the most convenient environment for programming, with the following conditions. I run Linux Mint 14.
I've got a computer at work but would like to have access to ...
-1
votes
2answers
88 views
how to code c++ via ssh with Vim or Vi? [closed]
Would I have to rent and configure a server or something? I'm sort of new to unix, but when
I was in school I had this nifty setup where I could ssh from any terminal in linux or mac or putty in ...
-1
votes
1answer
155 views
SSH Client for Windows that Allows Colors and File Explorer [closed]
I've tried out a few SSH clients to connect from Windows to Unix for school and I used putty, secure ssh client, and tessh, and bitvise.
The only problem with the above is they all have either the ...
3
votes
2answers
2k views
How to install g++ 4.7.2 & c++11 on CentOS 5.x?
I'm trying to install the latest stable g++ and c++11. My host did it through yum install and thought that it was the latest, but it's not, and they are now saying that this is beyond their level of ...
0
votes
3answers
293 views
Kate vs VIM/Emacs regarding speed [closed]
I'm trying to learn C++ in school using a UNIX environment and our professor urges us to use VIM or Emacs because a GUI is disadvantageous for two reasons:
Moving your hands off the keyboard and ...
0
votes
0answers
199 views
How to get keyboard input PS/2 scan codes or USB usage codes in a Qt application?
I'm trying to get the PS/2 scan codes or USB usage codes of keyboard keys pressed in a Qt application. I tried overriding QWidget::keyPressEvent() but QKeyEvent::navtiveScanCode() returns a value ...
-1
votes
2answers
522 views
Find the Information of USB Devices In C++ [closed]
I need to list existing USB hub and the devices connected in the hub using my C++ program.
I can able to print the USB Hub and devices connected in hub from terminal using the commands
lsusb
lsusb ...
1
vote
3answers
45 views
execute file in server more safely?
We have a application which takes a C++, C, or Java file as input, executes it, and displays the output to the client. What are the best measures that can be taken so that no security related issues ...
-2
votes
1answer
67 views
Can I add content to client file from server using C programming? [closed]
e.g I want to add
127.0.0.1 www.google.com
to the /etc/hosts file from server using C programming language.
1
vote
1answer
438 views
Ubuntu 12.04 c++ development system install
I am trying to install the Intel Parallel Studio 2013 on Ubuntu 12.04. During installation I received a failure notice that the command g++ was missing. I asked Intel and they indicated that the C++ ...
4
votes
2answers
219 views
c++ programming on a Real-time linux OS
Is there any gotcha's programming RealTime C++ applications (user space and linux drivers) on RT linux kernel compare to a std linux kernel?
The Linux RT patch applies changes to kernel scheduler, ...
3
votes
2answers
152 views
Is it possible to send arrays from bash to C++ program?
I wanted to know, if its possible to create an array_of_strings and send it to a C++ program, which has an argument string array_of_strings[]?
1
vote
0answers
123 views
Geany feature or plugin to show members of a class
Im using ubuntu 12.04.
For c++, is there a functionality (or plugins that will provide this) in Geany which enables suggestion/hint list of all members of a class, also classes from a linked library? ...
-2
votes
1answer
173 views
Difference Between #include “file.h” and #include <file.h> [closed]
What is the difference between the #include "file.h" and the #include <file.h>? Surely they mean the exact same thing, because I have a file that has something like this:
#include ...
0
votes
2answers
208 views
Getting list of installed apps (NOT packages)
How can I get list of installed apps (based at files in /usr/share/applications/) without writing own parser? I need just app name, path to app icon and path to launch app.
I'm using C++ with Qt ...
0
votes
0answers
129 views
Why new & delete operator symbols in shared-obj is to be relocated even if they are implemented in that shared-obj? [closed]
I am trying to implement my own C++ new & delete operators in my program as below:
#include <stdio.h>
#include <stdlib.h>
#include <new>
using namespace std;
void *operator ...
0
votes
2answers
101 views
How i create application B that would be able to communicate with running application A? [closed]
I have background application A.
I want to create application B to configure application A on the fly.
So, how can I detect if A is running and send some messages to A?
1
vote
1answer
2k views
C++ compile in Arch Linux with no g++ package in repositories
I wanna compile a C++ program in Arch Linux, but there's no "g++" package as there is in Ubuntu repositories for example.
Using -x too won't work. like this:
gcc -x c++ -o myprog myprog.cpp
Thanks ...
2
votes
3answers
327 views
Developing software on linux
What tools or IDEs do I need to start developing software on Linux in C++?
Can I work using C#?
What are necessary skills in order to know to develop software on Linux? I mean what is required in ...
4
votes
1answer
826 views
Why is my C++ program killed by OS
I've compiled small C++ application for school project on my virtual ubuntu 11.04. However when I attempt to run it over some larger data set after ~20 sec the program is killed by OS.
Killed ...
3
votes
1answer
394 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
292 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
209 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
203 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
1k 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 ...
4
votes
3answers
1k 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 ...
6
votes
1answer
1k 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
161 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
374 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
647 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
255 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
261 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
2k 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
1k 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
1k 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
238 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
354 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?

