Tutorial16

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
NiktNikogo15
Posts: 1
Joined: July 30th, 2018, 6:31 pm

Tutorial16

Post by NiktNikogo15 » July 30th, 2018, 6:46 pm

I've got some problems with tutorial 16.When I tried to build up solution I get fuck load of warmings and
errors.For example o cmath library I got problem with this staff:

using _CSTD acosf; using _CSTD asinf;
using _CSTD atanf; using _CSTD atan2f; using _CSTD ceilf;
using _CSTD cosf; using _CSTD coshf; using _CSTD expf;
using _CSTD fabsf; using _CSTD floorf; using _CSTD fmodf;
using _CSTD frexpf; using _CSTD ldexpf; using _CSTD logf;
using _CSTD log10f; using _CSTD modff; using _CSTD powf;
using _CSTD sinf; using _CSTD sinhf; using _CSTD sqrtf;
using _CSTD tanf[/color]; using _CSTD tanhf[/color];

Compiler says it is E0282 problem in this case.

User avatar
Multibyte
Posts: 42
Joined: September 17th, 2013, 5:55 am
Location: USA

Re: Tutorial16

Post by Multibyte » July 30th, 2018, 7:48 pm

If you are using Visual Studio 2017, I suggest to take a look at the following:

https://stackoverflow.com/questions/427 ... rd-headers

It may provide the answer or at least a clue.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Tutorial16

Post by albinopapa » July 31st, 2018, 3:57 am

Here's a problem I had and reported to Microsoft: Win API conflicts with C++17 and WinSDKs higher than 8.1

This isn't always the case. The conditions that caused it to show constexpr errors and macro redefinitions from other Windows API files were;
  • setting the language standard to C++17 or latest standard
  • setting the SDK to anything higher than WinSDK 8.1
  • including the wincodec.h file which is used for the Windows Imaging Component library
I wanted to use one of the C++17 features ( if constexpr ) so reducing the standard back to C++14 wasn't an option. I could have used the GDI+ library to load images, but I prefer the WIC API or rather, I know it a lot better than GDI+. Luckily, they responded as saying they will have a fix for this in the next update of VS ( 15.8 ). Perhaps, our problems are similar and will be remedied in the next release without the need for workarounds.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

MrGodin
Posts: 721
Joined: November 30th, 2013, 7:40 pm
Location: Merville, British Columbia Canada

Re: Tutorial16

Post by MrGodin » August 1st, 2018, 12:06 am

Sometimes, although they can be annoying, workarounds or wrappers can be a good learning experience.
Curiosity killed the cat, satisfaction brought him back

Post Reply