Hello All,
Here is where I have gotten so far:
I have Delorie GNU C++ installed on my Windows 98 Development machine. It has been there for many years and I use it to compile command line utilities to do quite a few things. Most of them are Flight Sim development related. DJGPP is no longer being updated, so there isn't a good version for the newer operating systems. It also does not come with a Windows library or header files that are needed for Windows definitions.
I have MinGW GNU C++ installed on my Vista Laptop. It has some Windows libraries and header files. You CAN do Windows programming with this setup. The problem though is that it gets MUCH more difficult when attempting to compile Microsoft source code. While MinGW and Microsoft both make required type definitions, they often do not agree. Although functionally, they may define compatible types, the compiler will see a lot of type mismatches because the actual type definitions do not agree.
To "correct" the Microsoft source code is silly because much of it is very cryptic. Most of the worthwhile functions are actually Macro definitions and callback functions which hide the underlying targets.
I suppose it is also possible to adjust the header files in the MinGW compiler, but that is a hopeless task as well. You may start looking for just one conflicting type definition and find that it calls about 20 others and the results cascade downward to affect MANY other files.
I used the Microsoft SDK examples to generate a very simple Dial Tachometer. I found that by hard coding some values and writing about a dozen of my own top level header files, I could compile it under Vista and even use it in CFS on a Windows 2000 machine. The problem is that when I move the same .GAU file over to Windows 98, it crashes CFS immediately.
Any Ideas?
- Ivan.
No Dice, I will go look at your link, but I believe I have been there already.