Closed script0803 closed 1 week ago
Hi, I need to use libmodbus in my project. It has four ‘.h’ files. How can I reference it in my project?
I now put these four ‘.h’ files under libmodbus of main and reference them in the cmakelist file under the main path. INCLUDE_DIRS "libmodbus"
After reference, vscode can find these four files directly, but when I build, it prompts that the file cannot be found.
No response
Question
Hi, I need to use libmodbus in my project. It has four ‘.h’ files. How can I reference it in my project?
I now put these four ‘.h’ files under libmodbus of main and reference them in the cmakelist file under the main path. INCLUDE_DIRS "libmodbus"
After reference, vscode can find these four files directly, but when I build, it prompts that the file cannot be found.
Additional context.
No response