Questions tagged [c++]

C++ is a general-purpose programming language.

C++ (pronounced "cee plus plus") is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

775 questions
127
votes
5 answers

What is a command to compile and run C++ programs?

I am new to Linux. I am using Ubuntu 11.04 and do not know how to compile and execute C++ program in it. I need to know the commands to Compile and Execute a C++ program in Linux.
user24989
43
votes
3 answers

Where do I find the core dump in ubuntu 16.04LTS?

I have a C++ program that does what it is supposed to do, but there must be some problem with pointer, since it crashes at the end and creates a core dump. My problem is that I cannot find the core file, so I cannot debug it. I have tried ulimit…
mattiav27
  • 865
  • 1
  • 8
  • 25
35
votes
4 answers

How to install gcc-7 or clang 4.0?

I want to try C++17 features and I want to install standard compliant compiler (preferably GCC). I'm totally new to Linux and Ubuntu and I simply don't understand a lot. I tried to follow…
nikitablack
  • 545
  • 2
  • 5
  • 8
29
votes
2 answers

How to build a simple chat using netcat?

I am currently working on a project and I have implemented a simple chat application using the netcat libraries. The client is prompted to enter port number and the command nc -l -p xxxx where xxxx is the port number entered by the…
Sachin S Kamath
  • 1,417
  • 1
  • 12
  • 20
27
votes
1 answer

How to install g++ compiler?

I have tried the following: sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to…
Siddharth Bhardwaj
  • 379
  • 1
  • 3
  • 3
26
votes
2 answers

Installing and using universal-ctags instead of exuberant-ctags

How could I switch from exuberant-ctags to universal-ctags. I am using Ubuntu 16.04 LTS and ctags --version reports Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
NexusStar
  • 553
  • 1
  • 8
  • 11
24
votes
2 answers

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 hello.cpp in vim and write this #include…
gabriel
  • 1,076
  • 7
  • 17
  • 34
23
votes
3 answers

Is it possible to use Python with the Ubuntu SDK?

David Planella wrote in his answer to a question I posted that: ...the recommended way to develop apps for Ubuntu is the Ubuntu SDK. So I installed it, but looks like the supported programming language is C++. Does it mean I will need to know C++…
Zignd
  • 10,774
  • 12
  • 36
  • 62
21
votes
2 answers

Fatal error: gl/glut.h: no such file or directory

I'm attempting to write a program and I keep getting this error: Fatal error: gl/glut.h: no such file or directory I've read through other similar problems that people were having, and nothing has worked for me. What can I do to solve this problem?
user257098
  • 211
  • 1
  • 2
  • 3
20
votes
1 answer

Where to install libraries manually?

I want to install SFML (a free multimedia C++ API) on my Ubuntu system, which basically isn't a problem. But I wanted to know where I should store the files. I can see, that Ubuntu stores my C++ Standard libraries in /usr/include/c++ and so on.. My…
Stefan Falk
  • 671
  • 3
  • 8
  • 25
19
votes
5 answers

Run system commands from QML App

I want to run a system command from inside my application. It's suppose to run a command on a remote server using SSH. But that's not really the point. The point is that I don't know how to run any kind of command from the app. I asked in the mail…
Daniel Holm
  • 630
  • 1
  • 5
  • 15
17
votes
1 answer

Installing clang 5.0 and using C++17

I have been trying for 3 days to install clang 5.0 on an Ubuntu 16.04 machine. I have tried various guides, but nothing seems to work. When I try to simply grab the latest from SVN and build/install (as detailed here), trying to compile a simple…
Steve D
  • 267
  • 1
  • 4
  • 13
17
votes
2 answers

How to set Clang 9 as the default C++ compiler on Ubuntu 19.10?

how do I set Clang 9 as the default C++ compiler on Ubuntu 19.10? I searched the internet, but nothing helped. Thank you for answer :)
user1027802
15
votes
4 answers

How to install g++ 5.1 on Ubuntu desktop 15.04 64-bit?

I'd like to experiment with the new GCC 5.1 C++ compiler on Ubuntu. So, I downloaded and installed Linux Ubuntu desktop 15.04 64-bit in a virtual machine. Then, in the terminal, I entered the following commands: sudo apt-get update sudo apt-get…
MikePro
  • 153
  • 1
  • 1
  • 5
15
votes
2 answers

How do you find libraries (C++) in Ubuntu?

Sorry, this is such a beginner question, but I've recently begun programming with C++ on Ubuntu 12.10 and I've installed a few libraries I need to work with, for example PCL and I can't find them to add them to my project. I'm using Qt Creator as…
Bora George
  • 587
  • 2
  • 8
  • 22
1
2 3
51 52