Code editor in Linux [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
What would be a good code editor for Linux (I use Ubuntu 14.04 LTS) which combines:
auto completion for c/c++ (more is better)
syntax highlighting
recognizing include commands and getting the code from the headers
not an IDE, rather something light
simple installation
I am not a big expert in Linux and, for example, it got too expensive for me to install SublimeClang plugin. Another thing is that I want to write the code and then run the compiler commands myself, not just by pushing a button, which is common in IDEs. Also, I don't like VIM.

If you do not want an IDE then I suggest you install Wine and then install Notepad++.
I suggest Eclipse CDT. It is a C++/C IDE that is quite lightweight and does everything you've asked. Plus it has a compiler. The instillation is quite easy. Go to the software installer and search "Eclipse CDT" and then install "CPP"
Another one, that is also an IDE but a little be more environmentally friendly is MonoC++
Also, there are online editors, such as Ideone and CompileOnline

Related

Could anyone help me to install Intel package fortran in Mac OS Catalina? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have downloaded the installation file from the link below but after finishing installation I am not seeing anything to open the application.
https://software.intel.com/en-us/fortran-compilers/choose-download
There isn't "something to open the application". You can use the compiler from a terminal or from Xcode. Instructions are at https://software.intel.com/en-us/get-started-with-fortran-compiler-macos , but in the spirit of StackOverflow I excerpt some of them here:
Before you can use this tool, you must first set the environment variables by sourcing the environment script using the initialization utility to initialize all the tools in one step:
From a terminal session, run:
source <install_dir>/bin/compilervars.sh intel64
where <install_dir> is the directory structure containing the compiler /bin directory.
By default, the path for <install_dir> isopt/intel/compilers_and_libraries_2020.<update number>.<packages number>/mac
...
Use the command below to invoke the compiler from the command line.
ifort helloworld.f90
If you want to use Xcode, see the link above for details. Keep in mind that Xcode integration is only partial - it doesn't understand module dependencies and you can't use the debugger from within Xcode.

Installing C++ OpenCV on Mac [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for anyway to set up C++ OpenCV on my mac. I've found numerous articles online but they all end up giving errors of some kind. I am completely indifferent to everything but the C++ part (for example flexible on the use of Xcode). Please don't link an article or post a method unless it has recently worked. I've already gone through tons of those. Any help would be very appreciated, I've been stuck for a couple days on this.
Details: Xcode 5, OS 10.9.4
Off Topic Edit: I realize this is a vague question but I'm not really looking for the best tool or solution. Just any one that would work.
brew tap homebrew/science
brew info opencv
brew install opencv
The info command was added as a suggestion so that you review the options you have when installing OpenCV. I'm using homebrew.

C++11 full support on Eclipse [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am trying to find a way to get full C++11 support on Eclipse.
In Eclipse Juno I had a lot of new features with __GXX_EXPERIMENTAL_CXX0X__ but I didn't find support for std::threads, std::mutex, etc.
How can I have completion for all C++11 functions?
EDIT : Solution
Go to Project -> Properties -> C/C++ General -> Path and Symbols -> Tab [Symbols].
Add the symbol : __cplusplus with the value 201103L
Eclipse works with C+11 support (Indexer and such) just fine: both Juno and Kepler. The thing is that you have to let Eclipse know that you are going to compile with C++11 support. This is done by providing additional flag -std=c++11 to CDT GCC Builtin Compiler Settings in C/C++ -> Build -> Settings -> Discovery [tab] so it will read something like:
${COMMAND} -E -P -v -dD "${INPUTS}" -std=c++11
And that is all you have to do with Kepler/Juno to get C++11 code highlighted correctly.
Note, this is workspace-wide setting. You can do the same on per project basis if you don't want to set it in workspace.
Is there even a compiler which fully supports C++11? If you are on Windows, then I think you should give Microsoft Visual Studio Express Edition 2013 a try. Its C++11 support is not complete but IMO fairly good, and it looks like it will get even better in the near future.

Beginning development on Mac OS using Qt [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
It would be of great help ,if some one can give me some links or some books which i can read to start developing Qt application on MAC OS using Xcode(C++).I have some experience on developing Qt applications on Windows but none on MAC.I also went through Qt documentation to understand how to integrate Qt on a MAC system but that was not enough,since i am entirely new to MAC.
So i request you all to guide me where to start learning about MAC OS and Qt.
Also what are the pre-requisites which i should be aware of to start development on MAC
First things first, have you installed Qt successfully?
Installation instructions for Qt on Mac
Next, you will want to configure Xcode
SO walkthrough for setting up up a new Xcode C++ project
SO question with some great answers about setting up Qt with Xcode
Start with a basic tutorial, to check that everything works
Qt tutorial
If you run into windowing problems, you may need to get hold of an X window manager like XQuartz. I'm guessing that you're already familiar with that sort of thing given your Windows background.
As far as using Qt, it should be the same on Mac as it is on Windows. As #JoachimPileborg points out, that is the point of a platform independent API!
Do be careful if you have any Os-specific dependencies. You haven't mentioned what other libraries etc you're using in the project, so I can't predict other issues that you might encounter.
Any more specific problems, or is that enough to get you started?

What is the minimum reasonably supported GCC version? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have been developing a C++11 application against a modern compiler on my mac/linux, which works fine but then I tried to deploy it to a very old linux box (g++ 4.1.2: Feb 2007) and of course that's too old and the executable won't work.
This isn't surprising but now I'm wondering if there is a standard amount of time you are expected to support a compiler/standard?
I had a look around but there is no mention of this.. Should the support for a compiler version drop when the developers themselves deem it end of life and will not patch bugs?
You're the one running gcc (or g++). It's a compiler, used by developers. End-user systems may not have any version of gcc. It's glibc and libstdc++ you need to worry about. But in general, Linux does not aim for binary compatibility. Do not expect any binary executable to run properly on any other distribution/major version.
Conversely, glibc and libstdc++ are careful to work with old kernel versions, so you should be able to install (configure+make+install) the latest runtime support libraries on your Linux box, and then build your application for that.
The easiest way to do that is probably to install the same distribution and version that your target has, into a virtual machine. Then install the C++11 developer tools, and build your application.