conan icon indicating copy to clipboard operation
conan copied to clipboard

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

Open novaTopFlex opened this issue 1 year ago • 1 comments

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?

  • [X] I've read the CONTRIBUTING guide

novaTopFlex avatar Apr 28 '24 23:04 novaTopFlex

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.

memsharded avatar Apr 28 '24 23:04 memsharded

Any further feedback or question here @novaTopFlex ?

memsharded avatar Jul 29 '24 17:07 memsharded

Closing as staled, but please re-open or create new tickets if you any further question, thanks.

memsharded avatar Sep 02 '24 09:09 memsharded