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

Author Topic: SFML inline files stopped working  (Read 3913 times)

0 Members and 1 Guest are viewing this topic.

qualcuno

  • Newbie
  • *
  • Posts: 4
    • View Profile
SFML inline files stopped working
« on: July 18, 2024, 10:53:25 am »
Hi,

I have been using SFML for some time now, but yesterday I closed visual studio 2022 and after I reopened it almost all the SFML .inl started all giving error like:
Rect is not a template
Vector2 is not a template
Utf is not a template
identifier "Uint8", "Uint32" is undefined

I tried:
cleaning the solution and rebuilding it, multiple times
reinstalling SFML
switching the solution platform from x64 to 32 bit

Even if I create a new project it keep giving the same errors

I'm on windows 11 64bit, SFML is set up as dynamic and I'm using what I guess is the default compiler for vs 2022

« Last Edit: July 18, 2024, 11:05:27 am by qualcuno »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML inline files stopped working
« Reply #1 on: July 19, 2024, 02:37:12 pm »
Is that while compiling?

While compiling your application or SFML itself?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

qualcuno

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SFML inline files stopped working
« Reply #2 on: July 19, 2024, 05:15:12 pm »
Is that while compiling?

While compiling your application or SFML itself?

When I try to compile my application not SFML.
I don't actually get the error from compiling it but I get it when I open up the SFML files, only the inline ones.
If I run the game some stuff just doesn't work, however it worked before this happened

Sorry in advance if I made any grammatical mistakes, I'm not english

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML inline files stopped working
« Reply #3 on: July 19, 2024, 05:37:05 pm »
Intellisense won't work properly in *.inl files because the IDE doesn't know how to resolve the types.
We fixed this on master, by including the header again.

This however shouldn't cause your code not to work.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

qualcuno

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SFML inline files stopped working
« Reply #4 on: July 19, 2024, 07:21:17 pm »
Ok I just realized I had an if with ";" at the end so it was completely useless and the code ran anyway.

Thanks for the help, I guess I'm just stupid lol

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML inline files stopped working
« Reply #5 on: July 19, 2024, 07:33:06 pm »
That's just called being a programmers. Everyone will run into the misplaced semicolon "bug" at one point. ;D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything