Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GCC - Compile error...

Featured Replies

First attempt to compile with GCC. Got a bunch of warnings regarding several redeclarations in the GAUGES.H of sd2gau13.zip and the basetsd.h (UNIT32, PUNIT32, UINT64, PUINT64).Last line is shown in the pic attached. What's up there?Thank you,Etienne :-wave

Hmm, strange, I thought I erased these problems before, which GCC version do you use? At least they are warnings, no errors, and can be ignored.Apart from that, you use "gcc ...c" as commandline, this won't give a complete gauge, you should use the makefile included in :...sd2gau13FS2K2 Gauge HelpGnu and Borland C++ Header filesGcc.zipOr, of course, just to test, use the -c flag to avoid linking, this should erase the error message to "WinMain..."Arne Bartels

Since you ahve error messages regarding "gauges.h" is it a renamed "fs2k2gauges.h" from sd2gau13 or is it the original MS SDK file? I thought I found a way to avoid to avoid these warnings dependent on GCC version, but I might be wrong here. If your "gauges.h" is the original replace it with fs2ksgauges.h or rename the "#include"s in the c files and makefile.Arne Bartels

  • Author

Ah, Arne, what the heck would we do w/o ya, you're the man, as always. :-)Just changed the fs2k2gauges.h in the makefile supplied with sd2gau13 to gauges.h, fired up the thing which seemed to be the make.exe equivalent mingw32-make.exe, and there even jumped out a working gauge, hehe! :-hahAlso got the DX SDK today so *maybe* *eventually* Q's about this will follow, anyway, 'til then,thanks a bunch,byeEtienne :-wavePS. By the way, the version I use (better the filename) is MinGW-2.0.0-3.exe.

That's why there are strange constructs like:#if !defined( _BASETSD_H_) && !defined(_BASETSD_H)etc.earlier versions of GCC use no BASETSD.H, and later versions do use it, but use different #defines then the other compilers (_BASETSD_H_ instead of _BASETSD_H). Earlier verions of GCC weren't able at all to digest the original gauges.h, because of various non ANSI-C declaration MS used, newer GCC are better here, but still need the reworked file from sd2gau13.zip.Arne BartelsP.S. I saw somewhere in a GCC documentation to rename mingw32-make.exe to make.exe, this allows the "normal" way to type simply "make" on the commandline as it is common for all non-MS Compilers on most platforms.

  • Author

Well if it's just that nasty underscore I'd maybe change stuff by myself. But 'tis just warnings, so...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.