yse / easy_profiler

Lightweight profiler library for c++
MIT License
2.14k stars 184 forks source link

easy_profiler.dll not found #177

Closed taranbis closed 4 years ago

taranbis commented 4 years ago

Hello,

So I keep getting this error while trying to run an executable in a bigger project. I am using Visual Studio 17, msvc 15. so i took the one from your releases page accordingly.

I added to CMakeSettings.json to cmakebuildargs, the CMAKE_PREFIX_PATH to the easy_profiler/lib/cmake/easy_profiler and of cours the find_package command and target_link_libraries in the respective CMakeLists.txt

I build the project and I also include <easy/profiler.h> in the .cpp. Now i am pretty sure it is included since Visual Studio offers syntax suggestions + syntax highlighting.

However, when I try to run the .exe I get "The code execution cannot proceed because easy_profiler.dll was not found" (see picture). I tried with versions 2.1.0 for both msvc 14 & 15 and 1.3.0 thinking it would be a version problem

Do you have any idea why it would not work ? I mention that I also tried copying the missing .dll to the sources path manually and still going through the build process, but no success again

image