What is the use of Cygwin exactly? [closed] - c++

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).

Related

Can I use an IDE other than Visual Studio to develop a Windows GPIO Driver? [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 company is interested in developing a GPIO Driver for Windows to use with proprietary peripherals and would like to save money by using an IDE other than Visual Studio.
After researching on Google, the MSDN, and StackOverflow, I was unable to determine if I am able to develop a Windows GPIO Driver using an IDE other than Visual Studio. The MSDN only gives tips on how to develop a Windows GPIO driver using Visual Studio and the StackOverflow questions pertain to specific development issues, while Google gave me a combination of the two. None of the methods gave me any kind of concrete or even ballpark answer, so I decided to post my first StackOverflow question.
If it is useful, I am using Windows 10 but I have access to, and can develop on, a Windows 7 system as well.
So the first question would be: Can I use an IDE other than Visual Studio to develop a Windows GPIO Driver and if so, what would I need from VS to do so?
Can I use an (open source/free) IDE other than Visual Studio, considering I am developing on Windows?
If I have to use Visual Studio, what is the reason that another IDE would not work (i.e. missing tools, missing libraries, poor Microsoft design decision, etc)?
So the first question would be: Can I use an IDE other than Visual Studio to develop a Windows GPIO Driver and if so, what would I need from VS to do so?
Yes, you can.
There's no officially recommended or best IDE to choose. Just get one that fit's your comforts regarding
syntax highlighting
debugging support
toolchain support
intellisense support when typing code
etc. frills and gadgets ...
The question merely is, if you are required to use the MSVC compiler to develop any artifacts (executables, shared libraries) for a windows target.
And the answer fortunately is: No.
There are alternative free toolchains like MinGw GCC or Clang available, and you can use any IDE that supports to choose support for that toolchain.
You can even use a simple text editor like Notepad++.
Can I use an (open source/free) IDE other than Visual Studio, considering I am developing on Windows?
You can do anything you need using the free tools available.
But take care about correct licensing (regarding standard library implementations etc.), supposed you're developing commercial product.
Yes, you can use any toolchain you want to develop drivers for Windows. You can use any editor and compiler.
You need to focus on the requirements of a Windows driver. Microsoft is always going to recommend you use their products. For example, they may suggest using C# with Visual Studio. Microsoft may make driver development easier by using their tools (more money for them).
The final "executable" driver leaves no clues as to the language or toolchain used to create it.
The are other resources available for information about Windows Drivers than MSDN.

Is it possible to create a complete DOS application to run in window 7 and 8 [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 8 years ago.
Improve this question
Is it possible to create a complete MS DOS application to run in windows 7 and windows 8. I like to create a basic accounting application for personal use.
It's possible to create MS-DOS applications on 32-bit versions of Windows. You need a compiler targeting MS-DOS, such as djgpp (MS-DOS port of gcc) or Turbo C++.
It is not possible to run (and thus, develop) MS-DOS applications on 64-bit versions on Windows.
MS-DOS is outdated and it's probably not good idea to write MS-DOS software today. However, Windows applications don't have to be graphical. It's possible to write command line applications for Windows, that run in command prompt. Many people make false assumption that text-mode applications have to be MS-DOS applications.
To compile MS DOS software on Windows 7 or 8, you have to use a cross compiler.

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.

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++ Compiler for Windows without IDE? [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 3 years ago.
Improve this question
I'm looking for just a compiler for C++ (such as g++) for Windows, that I could run in my cmd.
I'm using notepad++ as my text editor and I want to set up a macro in there that can compile my programs for me.
I do not wish to install Cygwin though.
Any suggestions?
MinGW. It's GCC/G++ for Windows. It's much lighter than Cygwin. The main difference from Cygwin GCC is that it doesn't try to emulate UNIX APIs, you have to use the Windows APIs (and of course the standard C/C++ libraries). It also doesn't provide a shell and utilities like Cygwin, just the compiler.
There is also a related system called MSYS, which provides a shell, etc. like Cygwin, but this is not required. MinGW itself will run in CMD (but I highly suggest using something better like Bash, for your own sanity).
Visual C++ has a command line compiler, cl:
Compiler Command-Line Syntax (C++)
If you don't have Visual Studio, you can download the Windows SDK (newer version) or the Windows Driver Kit for free, and then use the CL.EXE command-line compiler as suggested by #Greg Hewgill.
Digital Mars is excellent.
Probably not what you're looking for, but just to add to the question for completeness, the Intel Optimizing Compiler works great on Windows, Linux and Mac Intel platforms. A bit on the pricey side, but for highly optimized compiles on Intel processors it's second to none.
I think that the TDM-GCC from Twilight Dragon Media is more convenient than the official MinGW release. I found it simpler to install and use.
The old Borland C++ non-IDE compiler is freely available:
http://cc.codegear.com/Free.aspx?id=24778
Here is Wikipedia's background on this free, Windows, command-line compiler:
http://en.wikipedia.org/wiki/Borland_C%2B%2B
With Windows 10, you can use g++ via the Windows Linux Subsystem.
Once you've set it up, install g++ using the bash terminal (this answer on Ask Ubuntu shows you how).
Bear in mind: you will only be able to run compiled C++ programs in the Ubuntu/bash environment, not from cmd/PowerShell directly:
C:\Folder> bash
User#Computer:/mnt/c/Folder$ g++ hello_world.cpp -o hello_world
User#Computer:/mnt/c/Folder$ ./hello_world