Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: windows.h and time.h not accepted by the compiler  (Read 1287 times)

0 Members and 1 Guest are viewing this topic.

lori3

  • Newbie
  • *
  • Posts: 4
    • View Profile
windows.h and time.h not accepted by the compiler
« on: October 21, 2017, 07:39:50 pm »
Hi.
I recently created a super mario game in windows 7.

https://youtu.be/9vcxNRgnGiY

Since then i had to reinstall windows and i choose to install windows 10 instead of 7.
The problem is that the windows.h and time.h packages are accepted no more by the compiler. It says cannot open source file.

How can i fix this ?

(link for download is in the description)
Warcraft II HD. Check it out! - https://github.com/lori2001/Warcraft-II---clone

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11043
    • View Profile
    • development blog
    • Email
Re: windows.h and time.h not accepted by the compiler
« Reply #1 on: October 21, 2017, 07:57:09 pm »
Make sure you have installed the Windows SDK. And that you're using the right SDK for your project.

If you use VS 2017, then you can simply tick a checkbox in the VS installer.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything