Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ program compatible with Windows 95

I made the mistake of thinking that the C++ program that I coded with VS 2012 would work on a computer running windows 95.

Now I know why it doesn't work. So I took a look at other free compilers such as Dev-C++ 5 but after going through the forum of the Dev-C++ web site, it seems that it also can't be used make Windows 95 compatible applications.

So my question is, what should I use to compile my C++ application in order for it to work on Windows 95 and all the other versions of windows from 95 to 8?

Edit : After no suitable answer.

I don't mind having to build a different .exe for different Windows versions.

Edit : Problem solved!

Thanks to everyone who help in this discussion.

Using MingW and code blocks it took me only 20 minutes to adapt the code to Win 95 friendly libraries... and a full day to install Win 95 in a VM lol.

like image 782
Simon Corcos Avatar asked Apr 09 '13 19:04

Simon Corcos


People also ask

Does Windows have C compiler?

The Visual Studio build tools include a C compiler that you can use to create everything from basic console programs to full Windows Desktop applications, mobile apps, and more.

What C compiler does Microsoft use?

Microsoft Visual C++ (MSVC) is a compiler for the C, C++ and C++/CX programming languages by Microsoft.

Does C work on Windows 10?

The quickest way to do that in Windows 10 is to hit your Win key, type Notepad++ in the search window, and hit Enter. and paste it into the editor. Yes, this is your first C program! Now you can save the file somewhere, choosing C source file in the Save as type drop-down menu, and naming it hello.

Can you run C on Visual Studio?

Yes, you very well can learn C using Visual Studio. Visual Studio comes with its own C compiler, which is actually the C++ compiler. Just use the . c file extension to save your source code.


1 Answers

First of all, why Windows 95? Well, anyway, you can use MinGW for that. Code::Blocks is my favorite IDE that's got MinGW. You can download it from here.

like image 90
Shiva Avatar answered Sep 25 '22 21:09

Shiva