-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Integrating into Eclipse IDE
This short guide can help you get started with integrating the C++ spdlog library into the Eclipse IDE. The whole configuration consists of 5 simple steps.
Note: We can use git clone. Of course :)
Note: In many cases, it is advisable to choose a parent folder named 'ThirdParty' or 'libs' or any other name that immediately tells us that it is a folder with third-party files. I chose as the parent folder, a folder called 'ThirdParty'...
-
We will copy/unpack the content of the archive, which we previously downloaded from the project pages, into the newly created or already existing project. Or you can clone it from github
-
From the menu bar choose
Project > Properties > C/C+ Build > GCC C++ Compiler > Preprocessor
, and here you have to add a definition by clicking the Add button (define symbol-D
) and add the following definitionSPDLOG_COMPILED_LIB
. Attention, keep the size of the letters! -
Then click
Includes
(We are still here:Project > Properties > C/C++ Build > GCC C++ Compiler
) and add the path to the folder with headers for the library spdlog. For example:thirdParty/spdlog/include
-
Click on
apply and close
. -
Click
Project > Indexer > rebuild
Happy Coding ;)