victorfisac / Physac

2D physics header-only library for videogames developed in C using raylib library.
http://www.victorfisac.com/physac
MIT License
432 stars 28 forks source link

Unresolved external symbol for QueryPerformanceCounter in Visual Studio 2019 #50

Closed RafaelOliveira closed 2 years ago

RafaelOliveira commented 3 years ago

In VStudio 2019, QueryPerformanceCounter and QueryPerformanceFrequency needs theses headers to work:

include

include

it's described here in the requirements section: https://docs.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequency

but if I include windows.h raylib and physac don't compile, because of function names conflict.

ghost commented 3 years ago

@RafaelOliveira Looks like Victor does not work on this anymore, I will do this with my problem for my fork when i have time!

ghost commented 3 years ago

@RafaelOliveira Done!

About function names conflict, Looks like it's this issue by mine which i also fixed it right now on my fork...

Check out my fork if you wanna: https://github.com/Rabios/Physac