New answers tagged c++
Notepad++ is not a compiler and does not contain a compiler. You must install a separate compiler, then configure Notepad++ to use it. The NppExec plugin (docs) can be made to do this. (I've never done it, so I cannot verify that the following currently works.) This answer over on stackoverflow gives detailed instructions to use NppExec to save the ...
I found the solution by myself. Adding TARGET_LINK_LIBRARIES(Projectname library) to CMakeLists.txt made it run.
The package installation of other architecture compilers puts them into a system area. The executables are uniquely named, but the package is too "helpful" and thinks you really need a short name link (like gcc) to point to them, and whoa, another package already uses that link, gotta delete it for you. This might be fine in a virtual machine, dedicated to ...
Perhaps the easiest way to install this archive is to use the following 2 commands: wget http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-linux-ubuntu-12.04.tar.gz sudo tar -C /usr/local -xvf clang+llvm-3.2-x86_64-linux-ubuntu-12.04.tar.gz --strip 1 This works nicely on my 12.04 VM and gives the following: andrew@ithaca:~$ clang --version clang version ...
Source code is text, so any text editor will do... That said: most programmers appreciate lexical (syntax) highlighting and many text editors offer that (certainly any that we're going to talk about), as well as some basic tools that will make coding generally easier and more efficient (tabs, windows, search/replace, etc.). This question really has ...
All other answers so far just suggest and IDE. When you say "Please note that I am not asking how to compile I am asking where to and in which software to write code." I understand the where to as also asking which compilers to use. The first place to start for C/C++ is the the Gnu Compiler Collection (GCC). The easiest way to install GCC plus the other ...
In my opinion, there is no need for any IDEs to compile and execute most of the programs in c/c++. You can use any text editors like Gedit, nano , Vi/Vim to write the code and compile it using gcc or g++ which are installed by default. Install the (sufficient) packages for once. sudo apt-get install build-essential Next time, To compile a c program, Go ...
You have a lot of editors to choose from. I am using Geany for writing the code and gdb for debugging, because the applications I write need special environment where running IDE would not be a good idea. I have seen many people using Eclipse, which also supports GUI for debugging with the help of gdb. You should look and find the one that suits you the ...
When youre looking for an IDE there are many possibilities of which I want to cover one, its is called Code::Blocks and runs cross platform (Windows/Linux) you can install it from the standard repositories with sudo apt-get install codeblocks The following screen-shot gives you an idea of the UI of it.
Run this command in terminal(ctrl+alt+t) sudo apt-get install cmake
You need to change directory to "Desktop" by cd Desktop and then to tc3 by cd tc3.
Top 50 recent answers are included