0

I'm attempting to do a small C++ console app to hit Corsair's SDK for some basic testing. I downloaded the SDK from Corsair's website. I did these steps and the header file reference is still not compiling:

  1. I created a brand new C++ console app in VS 2022 and it build and ran with "Hello World!".
  2. I unzipped the corsair SDK file and placed the header files in F:\Source\Repos\CorsairEventsTester\CorsairEventsTester\includes folder.
  3. In main.cpp I added at the top #include <CUESDK.h> and it complained about not being able to find the source file.
  4. I went into my project properties and edited:
    • VC++ Directories
    • C/C++ General > Additional Include Directories

1

The error that I'm continuing to get is E1696 cannot open source file "CUESDK.h". When I follow that link it says to try what I did in step 4. I am unsure what to try next and this is all that the documentation that Microsoft provides says to do. At least the stuff that I've found.

akousmata
  • 1,005
  • 14
  • 34

1 Answers1

1

Based on comments and suggestions to question, I discovered that my configurations in VS 2022 were not correct. I was building on Windows 11 (x64) using win32 configuration. Switching the configuration manager to x64 and reapplying the changes to point to the correct include directories allowed the build to proceed. I also tested the same thing using All Configurations and it worked as well.

akousmata
  • 1,005
  • 14
  • 34