News for hackers. Stuff that matters.
Re:Djgpp by whitten on Thursday January 18, 2024 @01:34AM (#39038673)
Conceptually this seems to be the opposite of wine. It allows programs written for Linux to run under Microsoft Windows. Wine allows Windows programs to run under Linux.

Is there any way to use the synergy between them to make them work better ?

Re:Djgpp by cesarb on Thursday January 18, 2024 @02:27AM (#39038993)
> It allows programs written for Linux to run under Microsoft Windows.

No, at its core it's a port of GCC to MS-DOS (not Windows); it has no compatibility for Linux programs other than by virtue of both using the same compiler (GCC). If the program uses more than the standard C or C++ library, there's a good chance it won't compile unless it's ported to use what's available in MS-DOS. Even basic things such as process management (fork and so on) are non-existent in DJGPP, and unless you're running in a DOS window within Windows 9x (which makes available the LFN API to DOS applications), you're limited to the classic case-insensitive 8.3 filenames (which trip programs designed for Unix-style systems more often than you'd think).

Re:Djgpp by pronoiac on Thursday January 18, 2024 @02:49AM (#39039119)
This is a C compiler. You might be thinking of Cygwin - https://en.wikipedia.org/wiki/Cygwin
Re:Djgpp by andrewf on Thursday January 18, 2024 @05:39AM (#39040212)
To continue in this vein, djgpp is less like Cygwin, more like mingw and its derivatives eg https://en.wikipedia.org/wiki/Mingw-w64
Re:Djgpp by noselasd on Thursday January 18, 2024 @02:26AM (#39038984)
Not really, it's a gcc toolchain for compiling code targeting MS-DOS, it doesn't really provide much in terms compatibility between windows and linux
Re:Djgpp by lelanthran on Thursday January 18, 2024 @01:54AM (#39038796)
> onceptually this seems to be the opposite of wine. It allows programs written for Linux to run under Microsoft Windows.

No, it allows some POSIX programs to be compiled on Windows. ISTR using it on DOS with Allegro to write games.

Re:Djgpp by simoncion on Thursday January 18, 2024 @01:44AM (#39038736)
It allows a (possibly large) subset of programs written for a POSIX environment to work. I'm all but completely certain that most any program that used Linux-specific features would fail to function correctly.

Also, I don't see what "synergy" you're talking about.

Re:Djgpp by i_love_cookies on Thursday January 18, 2024 @01:38AM (#39038696)
For me it let me use a c compiler without paying for visual c++
Re:Djgpp by pjmlp on Thursday January 18, 2024 @03:48AM (#39039494)
Visual C++ has been available for free, for at least 20 years now, first with the language specific express editions, and now with full community edition.
Re:Djgpp by worik on Thursday January 18, 2024 @04:02AM (#39039585)
> Visual C++ has been available for free, for at least 20 years now,

Only 20 years?

Some of us have been around longer than that. I know Visual C++ has

Re:Djgpp by pjmlp on Thursday January 18, 2024 @04:27AM (#39039750)
Indeed, however before the express editions, the only way Visual C++ was available for free, was via piracy.

Naturally depending on the country culture that was hardly a problem, with endless list of software catalogs on street bazaars, but that wasn't what I was refering to.

Re:Djgpp by usrusr on Thursday January 18, 2024 @06:46AM (#39040618)
There was a short phase before express when you could get a free command line visual C compiler with some SDK. I think the intention was to enable users of other compilers to create C bindings to msvc C++ ABI DLL or something like that, perhaps related to the dawn of .net. I wanted to make Buzz plugins that are tied to msvc ABI and had just recently lost my "cultural compatibility with piracy" to the availability of gimp, djgpp and friends. "Pay or pirate" had been displaced by "pay or the challenges of freedom". Of course just when I had my routine somewhat going, express appeared and my adventures in frugality imploded.
Re:Djgpp by usrusr on Saturday January 20, 2024 @09:04AM (#39067633)
ps: long dead thread, but my memory just chimed in with the suggestion that express might have already been available, but only that command line version did not have all optimizations disabled.
Re:Djgpp by bluescrn on Thursday January 18, 2024 @05:52AM (#39040293)
It was closer to 30 years ago when I used started learning C using DJGPP, in DOS. 1996 or 1997 maybe?

There was an IDE for it, 'RHIDE' I think, that looked similar to the DOS-era Turbo Pascal IDE

Re:Djgpp by cesarb on Thursday January 18, 2024 @06:54AM (#39040679)
> Visual C++ has been available for free, for at least 20 years now

The context of this discussion (DJGPP) is from the MS-DOS and Windows 9x era, which was more than 20 years ago.

Re:Djgpp by pjmlp on Thursday January 18, 2024 @08:17AM (#39041303)
OP didn't put like that, and there is the small gotcha that DJGPP predates Visual C++.
Re:Djgpp by nottorp on Thursday January 18, 2024 @09:45AM (#39042236)
You must be new here :)

Plus I think the express editions came with some strings attached. I could be wrong, because I already had the gcc ports (djgpp, mingw) and didn't care much about Microsoft's breadcrumbs.