C and C++ programming on MacBook [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I recently bought a macbook and was wondering if I can write C and C++ programs on mac without having to install anything more. Say for Java, mac came with a preinstalled version.
Is it the same for C/C++. if yes, can you pls let me know hoe to compile and run a sample program or if not, can you please let me know what stuff to download?

You need to install the Mac Developer Tools either from your original Mac OS X disk or by downloading the latest version. This package includes the GCC compiler collection (supporting the C and C++ languages, amongst others).

You need to install the developer tools, which are on your MacBook DVD. Check for custom installations.

You should install Apple Developers Tools.
Basically you should get a (free) developer account and then download Xcode.
Unfortunately, starting with Xcode 4, Apple is charging 5$ for the download. So you could either decide to pay this, or download the previous version (Xcode 3)
The main page for Xcode is this. There you will find links to Xcode 4 and Xcode 3 (search within the page)

Related

Regarding C++ Libraries Installation in Red Hat Linux WITHOUT INTERNET [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have been trying to install Codeblocks and C++ libraries in the Red Hat Linux. It's been 1 week that I am trying to find a way to install them, specifically OpenCV. Is there any way to install them without internet? If not, which are the best in-built libraries which can be used in C++?
Without having software packages/repositories installed (or built on your own from another computer that has internet access) or on a network fileshare/external harddrive no. The yum repos download their files through mirror URLs, where these package repositories are stored and require internet access to communicate to these mirrors.
If you don't want to yum install, you can build from source by copying over the source code from another machine onto your system without internet access and building from source, but it may not work depending on the package dependencies of OpenCV and if they are available on your system.
The only built in C++ libraries without having any software package installed or building from source is the standard library.

how to create a setup.exe (windows) or package (linux) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have developed a software and would like to send it to other people.
Right now I have a folder with the compiled binary (.exe) and all necessary dlls and everything else you need.
So far I can simply copy this folder to another pc and it works.
It would be great to create a real setup.exe for windows and anything equivalent for Linux.
How can I start to create such installers? Can anybody provide a link with useful information?
This is well documented in multiple places.
To make a Windows MSI installer, take a look at WiX.
To create packages for RPM based Linux distributions, read up on RPM. For distros using Debian (deb) packages, read debian packages. For distributions using other package formats look at their websites and find their documentation on their package formats.
Also take a look at flatpak.

Replace MPICH Installation by OpenMPI [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I currently have MPICH (release 3.1.4) installed on my machine (running Mac OS X 10.10.5). I would like to remove it and install OpenMPI instead but could find no instructions online on how to uninstall MPICH.
Is it sufficient to simply delete MPICH's directory? If so, where can I find it? I thought I had installed it in usr/local and did find some MPI-related files there (in a folder named include) but nothing that seemed like it was the whole thing.
Also, I am planning to use OpenMPI together with Intel's c++ compiler. Is there some preferred order of installation of these two?
Juste type make uninstall from the directory you compiled. That should do it.
Regarding openMPI and the Intel compiler, better installing the compiler before ans using it to build the package, but that's not compulsory, using GCC will do as well.

Eclipse with C++ compiler bundle [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm about to teach intro C++ class and would like to use Eclipse for the development/learning. In order for students to setup Eclipse C++ to work on Windows it will not be very intuitive to install the compiler then install Eclipse and configure it. My question, is there a way to bundle them together and then provide students with those files to extract on their computer and start development.
If you install MinGW to the default install location C:\MinGW then the Eclipse CDT will automatically detect the MinGW toolchain and configure itself correctly.
If you run into issues make sure the PATH variable points to C:\MinGW\bin, this can be done automatically by providing a script to your students but may not be neccecary as the MinGW installer should do it automatically.
Are all of your students working on the same computers such as lab computers? Or on their own computers, which may have different os and 64/32 bit?
If they are all working on the same platform you could create a directory with applicable java/eclipse/and c compilers and a quick tutorial with a script to set their environment variables.
If they are working on their own computers this becomes very complicated. They will need different versions of each java/eclipse/ c compiler and will probably each run into different issues.
I am a student and we tend to have old computers. The first time I tried to run eclipse cdt was on a computer with vista.
That being said, you can create a zip directory with several different options that they could download and install. This is a headache I had to do for my senior design team. 7 of us ran into 6 different issues.

What is your favorite eclipse plugins for c / c++ development? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Besides just the CDT what do you find essential for c development using eclipse?
If you're doing development on Linux, then Linux Tools is very useful.
These are my favourite:
cppcheck (static code analysis)
valgrind (to find memory leaks)
google test (to make unit tests very easily)
Subclipse for svn integration
Qt Eclipse Integration plugin: http://qt.nokia.com/developer/eclipse-integration
Require Qt4.5. Both the plugin and Qt are free... as in beer and freedom!
I normally use cmake to build C++ projects. Recently I have been using the Eclipse CDT4 Generator and it works quite nicely, see this link or this one.
I have tried on Linux I don't about Windows. I know this project is trying to make easier develop with C++ on windows using Eclipse but it still have pending things.