conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8k stars 954 forks source link

How exactly do I import my C and C++ modules that I have installed via Conan? #16167

Open novaTopFlex opened 2 months ago

novaTopFlex commented 2 months ago

What is your question?

Hello! I have some questions about how exactly I import modules that I have installed via Conan to my C and C++ projects. I have attempted to utilize the #include <[project_installed_with_conan][.h]> format but have failed when performing such format in my C and C++ test files. How exactly can I successfully import these modules into my C code? Is the process significantly different for C++?

Have you read the CONTRIBUTING guide?

memsharded commented 2 months ago

Hi @novaTopFlex

There is nothing special in the #include per se, but it is important that the packages create and declare the information correctly.

You have hands-on tutorial with working code examples in https://docs.conan.io/2/tutorial/consuming_packages.html, that you can use to check how the #include to the dependencies work.