Gauges
This thread pretty much describes the issues:
http://www.sim-outhouse.com/sohforums/showthread.php?85498-Compiling-FS98-CFS-Gauges
My W98 C Compiler is Delorie Gnu C. It works well enough for text based ANSI C which accounts for most of my programming.
It has no hope whatsoever of building a Windows application.
There are many compilers that will build a Windows application.
Microsoft Gauges come with a HUGE SDK with libraries, header files, etc.
The problem is that all of the compilers with the exception of probably MS Visual C will make their own definitions for objects and types that they need but the definitions in THEIR header files will most likely not match those of the Gauge SDK.
Thus when you try to compile a gauge, the compiler barfs (technical term) when it encounters SDK typedefs that conflict with its own.
In addition, the names and contents of the header files will not agree. There are probably a few thousand references across a hundred or so files.
If you dig down far enough as I did, you come across basic type mismatches in fundamental header files themselves which means that one compiler may simply not work with the other's "extensions" to ANSI C.
It could be something so simple as one header defining a new type as an Unsigned Character while the other defines it as a Character.
Looks simple enough, but if every library function of the compiler expects one type and gets the other, then the whole world blows up.
The gauges I need are Tachometers and Manifold Pressure. Additional Trim gauges would be useful as well.
What I did accomplish was to use MinGW on my old dead Vista machine to compile a dumbed down tachometer for the second engine of my B-25 Mitchell. I dummied out some things, redefined others and hard coded things that referenced libraries and eventually got it to compile.
The problem was that while it ran on a Windows 2000 game computer, it crashed to desktop when I tried to run it on Windows 98.
From what I can tell, MSVC version 5 is probably what I need to find. MSVC version 6 MIGHT work as a cross-compiler but won't install on W98.
Neither version is available at this time so I believe I am stuck.
Ideas?
- Ivan.
This thread pretty much describes the issues:
http://www.sim-outhouse.com/sohforums/showthread.php?85498-Compiling-FS98-CFS-Gauges
My W98 C Compiler is Delorie Gnu C. It works well enough for text based ANSI C which accounts for most of my programming.
It has no hope whatsoever of building a Windows application.
There are many compilers that will build a Windows application.
Microsoft Gauges come with a HUGE SDK with libraries, header files, etc.
The problem is that all of the compilers with the exception of probably MS Visual C will make their own definitions for objects and types that they need but the definitions in THEIR header files will most likely not match those of the Gauge SDK.
Thus when you try to compile a gauge, the compiler barfs (technical term) when it encounters SDK typedefs that conflict with its own.
In addition, the names and contents of the header files will not agree. There are probably a few thousand references across a hundred or so files.
If you dig down far enough as I did, you come across basic type mismatches in fundamental header files themselves which means that one compiler may simply not work with the other's "extensions" to ANSI C.
It could be something so simple as one header defining a new type as an Unsigned Character while the other defines it as a Character.
Looks simple enough, but if every library function of the compiler expects one type and gets the other, then the whole world blows up.
The gauges I need are Tachometers and Manifold Pressure. Additional Trim gauges would be useful as well.
What I did accomplish was to use MinGW on my old dead Vista machine to compile a dumbed down tachometer for the second engine of my B-25 Mitchell. I dummied out some things, redefined others and hard coded things that referenced libraries and eventually got it to compile.
The problem was that while it ran on a Windows 2000 game computer, it crashed to desktop when I tried to run it on Windows 98.
From what I can tell, MSVC version 5 is probably what I need to find. MSVC version 6 MIGHT work as a cross-compiler but won't install on W98.
Neither version is available at this time so I believe I am stuck.
Ideas?
- Ivan.