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.

comiling Timemanager

Featured Replies

Hi ChrisCompiling timemanager I get some overloading errors. Any idea ? I add the log.thanksHarald

Harald,The problem is the types of the arguments in these function calls. tzDelta.dMinutes = (int)(fmod (offset, 1.0) * 60);In this case, 'offset' is a float and the constant 1.0 is a double by default. There are versions of fmod() that take float,float and double,double and long double,long double, but the compiler doesn't want to guess which version to convert the double,float arguments to. The problem with the floor() calls is that the arguments are integers and need to be explicitly cast as floats.You just need to make the argument types more explicit. Replace the lines in TimeManager.cpp with the following and it should fix the problems:171: tzDelta.dMinutes = (int)(fmod (offset, 1.0f) * 60);459: float n1 = (float)(floor(float(275 * date.month / 9)));460: float n2 = (float)(floor(float((date.month + 9) / 12)));461: float n3 = (float)((1 + floor(float(date.year - 4 * floor(date.year / 4) + 2) / 3))));566: rise.minute = (int)(fmod(utRise, 1.0f) * 60);569: set.minute = (int)(fmod(utSet, 1.0f) * 60);Chris WallaceOttawa, Canada

  • Author

Hi ChrisThank you, I will try it.Harald

  • Author

Hi ChrisIt worked, I had only to change line 461 fromfloat n3 = (float)((1 + floor(float(date.year - 4 * floor(date.year / 4) + 2) / 3))));tofloat n3 = (float)((1 + floor(float(date.year - 4 * (floor(float(date.year / 4)+ 2) / 3)))));thanksHarald

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.