NVIDIA / nvapi

NVAPI is NVIDIA's core software development kit that allows direct access to NVIDIA GPUs and drivers on supported platforms.
Other
89 stars 8 forks source link

How to compile a nvapi example? #3

Open mp437376671 opened 6 months ago

mp437376671 commented 6 months ago

After cloning the source file locally, I added it to VS2019, but most of the symbols in the NvApiDriverSettings.c source file reported mass error message saying that the identifier could not be found. Snipaste_2024-03-02_14-25-57

mp437376671 commented 6 months ago

This is just a pure C project, but why does the source file NvApiDriverSettings. c contain C++ syntax? Obviously the compiler will generate syntax errors. Why can such obvious grammar errors exist in this project?

I can only say that such type of enumeration array cannot be compiled in the C compiler at all !

EVAlues_OGL_AA-LINE-GAMMA g_valuesOGL_AA-LINE-GAMMA= { OGL_AA-LINE-GAMMA-DISABLED, OGL_AA-LINE-GAMMA-ENABLED, OGL_AA-LINE-GAMMA-MIN, OGL_AA-LINE-GAMMA-MAX, };

Extravi commented 3 weeks ago

did you ever get it working?

wayneso commented 2 days ago

Writing cmakelists.txt ,Generating .sln with cmake,