C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
0answers
19 views

c++ debug jump back netbeans and eclipse

All the latest netbean ide and eclipse ide for c++ open some project and then rebuild and debug, it will somehow jump back to somewhere when I press step over,like this (from 44 to 40): Can ...
0
votes
0answers
13 views

clang++ fails to compile simple hello world c++ program

After upgrade to 14.04 from 12.04 clang++ stopped working. $ cat test.cpp #include <iostream> int main() { std::cout << "Hello World" << std::endl; return 0; } $ ...
2
votes
1answer
34 views

How do I create simplistic window-like elements in a command-line program?

When I execute sudo dpkg-reconfigure lightdm in the terminal I see a simplistic window-like listmenu. Is there an way to make something like that in C++? This looks something like:
0
votes
0answers
34 views

How to build C++ application that links to actual .so.$(version) file at runtime rather to a .so symbolic link [on hold]

I've installed a base-dev library (a dependency) for building my C++ application. I packed the application using dpkg-buildpackage -fakeroot -b. when installing myapp.deb. on target machine the base1 ...
-1
votes
0answers
12 views

unable to build boost library

I've got boost via sudo apt-get install libboost-all-dev but now i'am unable to build any boost library in src/include/boost is no bootstrap.sh file. How can i build now? If i have to install manualy ...
1
vote
0answers
31 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 ...
3
votes
2answers
400 views

How can I know that I have g++ installed in my ubuntu?

I have recently installed ubuntu 14.04 . I tried to run a c++ code by a command like this: g++ first.cpp -o first Then it said: The program 'g++' is currently not installed. You can install it by ...
0
votes
0answers
9 views

How to connect a Button to FileDialog function in ubuntu sdk?

I've just started to deploy my first application for Ubuntu using QtCreator 3.1.1 based on Qt5.2.1 on Ubuntu 14.10.. I need to open some video files, so I'm going to put a Button to choose file ...
0
votes
1answer
46 views

How do you get C++ to compile from Code::BLocks? (Beginner to Linux)

So I just recently installed Linux after using Windows for my whole life. I also just installed the C++ IDE named code::blocks using the following command in the terminal: sudo apt-get install ...
-1
votes
0answers
65 views

c++ code's working in Windows, not in Linux [on hold]

I have code in c++ which can be run in Windows easily but when I run it in Linux it gets in a loop and takes for ever. I am just wondering if it is a common issue or if someone had the same experience ...
-1
votes
0answers
36 views

llcm-gcc include path error

for a specific build i need to use the llvm-gcc for linux x64 from here: http://llvm.org/releases/download.html#2.9 The problem is, its include path is messed up. I added the /bin directory to my ...
0
votes
0answers
19 views

C++ mounting samba share with glibmm

I'm trying to mount samba shared folders with C++. I found that with glibmm library I can do that, but I can't find any examples or tutorials. Somebody could post some example code? Thanks.
0
votes
0answers
15 views

Qt-> how to set ALT key active

Can someone please explain how to set the Alt key as active permanently? I'm trying to make an application for Ubuntu and I need to make it active. I want to add it to the code below in the if ...
1
vote
2answers
48 views

Codeblocks set up?

Hi I am looking to set up code blocks IDE to dev C++. I have installed it and used it to do a first hello world app. I tried to compile and run but it has a debugger and what appears to a link ...
2
votes
0answers
61 views

lock/unlock events for in C++ app which should not depend on screen savers

We have a product, which was developed for Windows. Because of customer request we are developing it for Linux also. So being a beginner to Linux, have migrated most of it (which I loved it). Now got ...
-1
votes
2answers
37 views

c++ program compiles but doesnt run [closed]

The c++ program compiles fine, but I cannot run it. It does not give any error message too. It does not even execute the first statement of main(), which is simply an output statement, which I gave as ...
3
votes
0answers
61 views

How to create an Ubuntu Touch app with a C++ backend and a QML interface [closed]

I'm looking forward to the release of Ubuntu Touch and thought it would be nice to contribute a small and free app that I'm also using now on my Android phone. The free and open source app for ...
0
votes
1answer
57 views

Communication between JS and C++ process on Ubuntu platform [closed]

We develop board on Ubuntu platform using Ubuntu SDK which contains 2 parts - 2 differrent processes: 1. GUI 2. Business Logic - implemented as C++ process There should be a bidirectional ...
0
votes
0answers
20 views

Prolog-C++ inteface doesnt work

I want to use prolog in C++ as a knowledge base or logical service(Embedded prolog in C++). I've searched alot but found nothing which can help me. I also checked the official link: ...
0
votes
2answers
56 views

Eigen installation seemed to work, but I still can't make eigen work

I am trying to install eigen, but I don't seem to get it to work. I did: sudo apt-get install libeigen3-dev and everything seems fine, after dpkg -p libeigen3-dev I get: Package: libeigen3-dev ...
0
votes
0answers
35 views

excel query in qt

I have a program to connect with excel file. my excel file contains usernames and passwords of users who has access Permission to application. in interface of the program i have two QlineEdit(one for ...
1
vote
2answers
90 views

read from text file in qml qt/quick

I have a program to preview images that store every image's path (all images are in my computer) in text file. first i open text file and read line by line images paths and store to a list then i ...
0
votes
1answer
62 views

Read lines from a text file in QML Qt/Quick

I need open a text file and read it's contents line by line and store each lines in a string list in qt quick 2.2. Can every one help me?
2
votes
0answers
37 views

Modifying default KawigiEdit C++ template in Ubuntu 12.10 LTS

I am trying to edit default c++ template of KawigiEdit plugin, but after I configure and save the modified template as default template, there is no effect. Has anyone modified KawigiEdit's default ...
0
votes
0answers
24 views

Qt C++ windowMinimized no reaction on Ubuntu

Heloo all! Me and a friend are creating an app for linux, everyting works but the custom minimize button doesnt whant to work on Ubunutu 14.04, there is no reaction when presed clicked an so on. Any ...
0
votes
0answers
94 views

cmake: Configured compiler /usr/bin/c++ does not support thread local storage

I'm trying to build Geant4. I got some problem on cmake that I have no idea what to do. Whenever I try to build on home directory, everything works just fine. Here's the output: ...
1
vote
1answer
199 views

Cannot find boost-thread-mt library

I am compiling a program which requires boost-thread-mt library. I have installed libboost-all-dev using sudo apt-get install libboost-all-dev but compiler says that it cannot find boost-thread-mt ...
1
vote
1answer
86 views

emit signal with custom type objects array parameter from c++ and receive in qml

I would like to emit a signal from a Qt C++ class which includes a parameter that is an array of custom objects (inherited from QObject) and receive the parameter in its qml slot, but i'm afraid it is ...
0
votes
1answer
50 views

Random number generation

I have generated random numbers in turbo C++ ( DOS) by using random command. Again, I have generated random number in ubuntu C++ by using srand and rand commands. Both the random generations are not ...
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: ...
1
vote
0answers
42 views

Get keyboard input without requiring root and without x11

I'm trying to capture keyboard input in a C/C++ program without requiring root privileges and without the use of X11 XNextEvent(). I've tried to open the device directly, but for obvious security ...
0
votes
0answers
23 views

How do I add C++ Source and Header Files to UbuntuSDK Project?

I am trying to add some C++ Code to an Ubuntu SDK Project which is (GUI) based in QML. Unfortunately I can't seem to understand how I am supposed to do this. Usually QTCreator allows me to right click ...
2
votes
1answer
66 views

C++ system() function for further arguments in ubuntu

I didn't really know how to even look for the solution for this one. My problem is, how to execute system commands in c++ using function system(); but for more arguments(Come on it sounds awful). Let ...
1
vote
1answer
56 views

Ubuntu SDK: QML with C++ recommended App Design Methodology

Are there documented general guidelines for mixing QML with C++ for ubuntu apps? "QML for UI design and C++ for logic" seems to be the trend. Is this the right way forward?
0
votes
1answer
131 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 ...
0
votes
0answers
23 views

customized run of C++ program in Eclipse CDT on ubuntu

I have a folder of source codes, which using the make simply it generates diferent binary files. Y1,Y2,Y3, ..Y6, which are different versions of the program. For the build process in Eclipse, ...
1
vote
2answers
53 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
199 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
27 views

Remote control of C++ program in Ubuntu via HTTPS

I have an emulator program written in C++ running on Ubuntu 12.04. There are some settings and options needed for running the program. I need to query and control these options via HTTPS from a remote ...
0
votes
1answer
177 views

Unmet dependencies for libstdc++

When i type: sudo apt-get install libstdc++ i got: The following packages have unmet dependencies: libstdc++-4.8-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-8ubuntu1 is to be installed ...
0
votes
2answers
646 views

Are there drivers for OpenGL 4.3 for [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series] (Ubuntu 14.04)

I want to be able to do opengl4.3 c/c++ programming, the [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series] should be able to support it, I just don't know what drivers I have to install Also I have ...
0
votes
0answers
118 views

How can I use C++11's <regex> on Ubuntu?

I normally use the G++ compiler, but I don't have anything against using clang++. Reading about this, I get the idea that G++'s implementation of C++11's regex might not compile, and if it does, it ...
1
vote
3answers
144 views

Unmet dependencies libc++ [duplicate]

How should I correctly install clang's c++ library (with STL) on my lubuntu machine? I want to use clang and its c++ library because it offers better support for the upcoming c++14 standard. When ...
1
vote
0answers
59 views

Why is gdb progfile producing a segmentation fault? [closed]

I have a g++ project and would like to debug it using gdb. Opening gdb with the program as an argument produces the following output: Reading symbols from <my_app_name>...Segmentation fault ...
0
votes
0answers
26 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
24 views

Qml HUD integration without MainView?

I'm working on an app with Qt Quick Components, I don't want to use any Ubuntu specific components because I want the desktop version of my app to be more portable than that (Qt 5.2 is enough of a ...
1
vote
0answers
33 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
52 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
265 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
1answer
190 views

OpenGL in Ubuntu [closed]

I'm new to ubuntu. I'm using openGL in visual studio 2010 in windows platform using c++ language. Now I'm migrate to ubuntu 12.04. Can I do the same on ubuntu? If yes. what is the way I have to do.. ( ...