Cygwin or Gnuwin32 or MYSYS? [closed] - c

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 8 years ago.
Improve this question
I've tried to google it and I understood some stuff, but still don't know which one is suitable for my needs.
all I want to do is to compile C file (or C++) under Unix environment (so I can use Fork and stuff that don't work on windows) and run these files after compiling it.
to be more exact, I need to use Fork+Semaphores and to use OpenMPI. I know I can do these with Cygwin (or that's what I understood), but it seems like it has a very large size, so I thought if this Gnuwin32 or MYSYS can do what I want to do and they have less size then Cygwin, then it's better ?

If you are absolutely sure you require fork and cannot instead use a more platform independent way of multiprocessing (a thin fork/CreateProcess wrapper) or multithreading (pthreads, Boost.Thread, C++11 std::thread, ...), then you are forcing yourself to use Cygwin.
Note that Cygwin's fork is pretty much as efficient as fork can get on Windows, which is not very, as the OS wasn't designed with that operation in mind, hence the kernel level support is missing.
Cygwin itself is not that big: it's only a DLL you link to that provides the POSIX interface. But do note that Cygwin is GPL and linking to the Cygwin DLL will force copyleft on your project as well.

Related

Is there any C compiler that does NOT come with an 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 1 year ago.
Improve this question
I am new in C programming, and I was searching the internet for a compiler (for Windows 10). The compilers I found all had a full IDE included, but I don't need the IDE (I have a code editor). Is there any C compiler that does not come with an IDE, or at least a way to download one without the IDE?
This is going to get closed, but anyway, you can use any linux based compiler such as gcc or clang.
Also, Visual c++ has a compiler that can be used at the command line. In fact, nearly all C compilers can be used at the command line.
I think Microsoft makes their compiler available for download free. Only the IDE costs money. The compiler itself runs by command and when you use the IDE it just runs the command in the background.
How to install gcc in Windows 10? (the easier way)
How to Install the Latest GCC on Windows
Installing GCC: Binaries
You should be able to install GCC without an editor. https://gcc.gnu.org/install/binaries.html
To install it, follow the tutorial here to use MinGW, or use this tutorial to use Cygwin.
On the other hand, you could just use an editor that includes support for GCC. It may already be built into your IDE.

How to write a text mode gui in Linux? [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 7 years ago.
Improve this question
When I write scripts/programs, often I would like to pop up a simple text 'gui' to prompt for input:
How would I do this? For example from Shell, Ruby, Golang or C. I don't even know what this is called and Google isn't reponding to "text thingy from scripts".
(The example is from the Debian installer).
Actually, that is not dialog, but the newt library (there are a few differences in appearance). It is used by anaconda on Red Hat systems. The whiptail program uses the library, however it has no real relationship to anaconda.
Anaconda is mostly in Python; it uses the newt shared library (written in C) from a Python binding.
For learning it... documentation is largely non-existent. You have the source code.
Further reading:
screenshots for dialog
newt.git
anaconda.git
Any examples/documentation for python-newt (discussion of newt vs documentation)
Spicing up the Console for Fun and Profit, Part 2
In the past this was known as "Dialog," though as Thomas points out (as the maintainer of Dialog!!) this is no longer the case. This is most likely the Newt library. While you could certainly write something lower level using ncurses, Newt is available in Linux pretty much universally. Dialog can also be installed under Linux. You can read some basic documentation for it here.
Choosing to use this over a curses based approach allows you to focus on what it is you're actually looking to do rather than doing all of the work to build a UI. If, however, you are really looking to build UI elements, ncurses would be the way to go.

What Graphical LIbrary should I use for C [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 7 years ago.
Improve this question
I want to make a project in C using GUI on windows. What are all the graphical libraries I can use and which one is the best. I have tried windows.h and SPL(stanfords portable Library).
It depends if you want to code something portable to other operating systems (notably GNU/Linux, which I invite you to install on your laptop) or not. If you are developing a free software (and wants to get some external contributions) and/or care about software portability, you may want to use a cross-platform toolkit like GTK, libsdl, libsfml etc..
If C++ is an option, consider also Qt
I am not sure that enumerating all graphical libraries (or widget toolkits) makes any sense. Very probably, there exist a lot of proprietary (or even open source) obscure ones.

Is there any open-source cross-platform library for working with processes in C? [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 8 years ago.
Improve this question
Not C++ like boost::process or Qt but plain C. Is there any open-source cross-platform C library for working with processes?
glib (think Gnome) is the peer of Qt (think Kde) but being written in C. There is a section titled Spawning Processes that may be of interest.
Depending on what you're trying to achieve and what you mean by "cross platform", you could write everything to target POSIX and just use Cygwin for your Windows port. I think that covers Linux, Unix, OSX (aka BSD), and Windows XP - Win 7, and any RTOS with a POSIX layer (e.g. QNX). Not sure if Cygwin works on Win 8.
See also:
What is the closest thing windows has to fork()?

Are there any open source C Library (not c++) for Windows Driver Development? [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 8 years ago.
Improve this question
Are there any open source C Library (not c++) for Windows Driver Development ?
I am developing a network device driver that need some functionality such as RegEx, string manipulation, Object Oriented by C and XML and so on...
thanks.
Not aware of any real regular expression libraries. However, depending on what you need FsRtlIsNameInExpression may be of some interest. There's plenty of string manipulation functions in the Safe String Libraries, they just have names that are different to the libc equiavalents.
Please don't do this in a driver. It would be frowned upon in the Windows driver communities.
What keeps you from communicating with a UM module of your product to do such more error-prone operations? Keep the operations, especially risky ones, to a minimum within a driver. When your UM module crashes, it may take down a process, when your driver crashes it will inevitably take down the system.
No question: it's possible. But not everything that is possible should also be done ;)

Resources