Eclipse with C++ compiler bundle [closed] - c++

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.

Related

What is the use of Cygwin exactly? [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 5 years ago.
Improve this question
I installed Cygwin on my laptop. After going through the instructions on netbeans site, i found that i need to change the path directory.
My path directory initially shows some java thing on that and if i change it then will it create some problem?
I basically Want to run C/C++ programs by NetBeans so I installed Cygwin thinking that it would help me.
Please Suggest me what to do.
Took this from the original guide
Cygwin is a Linux-like environment for Windows. It consists of a DLL
(cygwin1.dll), which acts as an emulation layer providing substantial
POSIX (Portable Operating System Interface) system call functionality,
and a collection of tools, which provide a Linux look and feel. The
Cygwin DLL works with all x86 and AMD64 versions of Windows NT since
Windows XP SP3. The API follows the Single Unix Specification as much
as possible, and then Linux practice. The major differences between
Cygwin and Linux is the C library (newlib instead of glibc). With
Cygwin installed, users have access to many standard UNIX utilities.
They can be used from one of the provided shells such as bash or from
the Windows Command Prompt. Additionally, programmers may write Win32
console or GUI applications that make use of the standard Microsoft
Win32 API and/or the Cygwin API. As a result, it is possible to easily
port many significant UNIX programs without the need for extensive
changes to the source code. This includes configuring and building
most of the available GNU software (including the development tools
included with the Cygwin distribution).

How to write a program that can download and install many packages (c++)? [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 6 years ago.
Improve this question
My specific case:
I am trying to implement a maze solver in c++ that takes in a grayscale picture and outputs the same picture with the solved path. I have looked online and found that I should use OpenCV which requires other packages as well. I want the user of my program to be able to run the program, which checks if these packages are already installed. If the required packages are not installed, I want to be able to install these programs on the machine (Linux). The rest of my program will use these packages to solve the maze.
General Case:
How can I create a program that when executed, installs required packages for the program to be used later? Is this possible? What is this called (if it exists) so I can read about it? And finally, would this be incredibly difficult for a team of first year c++ students?
Thank you for your responses, I have tried to look for an answer myself but cannot find one.
On Linux, this problem is typically solved by what is known as a package manager.
Different distributions employ different package managers. For example, Debian based distributions utilize Debian packages (.deb files). RedHat and it's child project Fedora utilize RPM packages (.rpm files). Depending on your distribution you would then create the appropriate package for your project and list it's dependencies in the package's control file.
If you are using a Debian based distribution, I would highly recommend Aptly. It will allow you to create local repos, mirror existing repos, and host your own repo on Amazon's S3.
I should also mention Docker for this. Docker can also be thought of as a package manager of sorts. It basically allows your application to carry its operating system configuration with it, which will allow you to deploy the app to almost anywhere docker will run. There could be some limitations if you are tied to camera hardware, but it's definitely worth consideration. Also, with Docker Hub you can freely deploy it to all of your classmates/students machines as well.
Hope that helps!

How to write C++ on Mac? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Taking my first C++ class in college. I need to download C++ and my teacher gave us a direct link to download it, but it only works on Windows. Is there a way I can format it to work on my Mac or is there a Mac-friendly version I can download?
A compiler for C++ is already built into Mac (try g++ main.cpp in terminal). If you mean an IDE for C++, use Xcode 5, available in app store.
It's developed by Apple, has git integration too if that's useful to you. Also has templates and such available to entice you to work on OS X/iOS projects, which might be a nice way in for you (I'm just starting out too, and I think that could be good).
For command-line projects though, I find it best to write in Xcode, then compile and run from the terminal. It's easier for file I/O and passing arguments to stdin IMO.
You can utilize something called Xcode IDE to write your programs on C++, I have been using that for a quite a while now, and it's definitely fun. You can find the app from free on APP store or just by clicking the link below. This is one of the many things I like about MAC.
click here to get XCODE
On Mac, since you are just starting out, use XCode. Its a pretty neat IDE with built in C++ compiler so you can write C++, compile with a click and run.
I think you kinda have the wrong idea of c++.
C++ is a programming language and what you are asking about is a development environment.
For example Xcode is such an environment. Since I also have my favorite I would use Eclipse since it is useful for many other purposes too.
Eclipse C++ Download

c++ IDE on usb? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed last year.
Improve this question
is there any c++ compiler i can put on a usb or external harddrive and use it on any other computer? the school computjers in my library dont have an ide... or a compiler installed...
P.S the school computers are very tight on securty. i cant even download things from the internet, no websites like facebook, so can i install it on one of the computers? or can i just run it as the actual executable file and run it straight from my usb?
there are several computers with windows 7, and 3 imacs
I'd try Eclipse. And if it doesn't work straight away, try one of those USB-stick program-hosting softwares like U3 (it comes on some Sandisk thumb drives).
Code::Blocks can easily be made portable by setting custom environment variables, described here
At the back-end, C::B can use mingw, which doesn't require any specific install information other than a few environment variables. (namely PATH). These can be set temporarily using SET PATH=%PATH%;./mingw/, which should be possible without elevated privileges.
You might try some of the tools at portableapps.com. They're a group that modifies open source software to run off of USB sticks. I've used their versions of Notepad++, Gimp, and Filezilla for years.
In particular, maybe look at they're development tools: http://portableapps.com/apps/development
It looks like they even have some programs to make other apps portable as well, which you might try with Eclipse, as John suggested. (I think Eclipse may also just run off a USB stick without any modification.)
Dev-C++ might be a good choice if you only use Windows.
If you want an IDE that works in both Windows and Mac, you can choose Emacs, which is a very powerful text editor and is a part of the GNU project. But as it's only a text editor, you will need to download the C++ compiler yourself. MinGW might be a good choice in Windows. Since I have never used a Mac, I cannot give you more suggestion for the Mac environment. But as it's a Unix based system, I guess it has a C++ compiler itself.
What you're looking for is a portable c++ ide. Google gave me the following:
devcpp-portable
Netbeans portable config
But go through google to find more
There is portable code blocks.

C and C++ programming on MacBook [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 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)