Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include prewritten code library? #35

Closed
slycelote opened this issue Nov 29, 2020 · 7 comments
Closed

How to include prewritten code library? #35

slycelote opened this issue Nov 29, 2020 · 7 comments

Comments

@slycelote
Copy link
Owner

I also had a question, what is I want to include some pre-written library of mine in my solution, but it is not present in the cpplib folder, How shall we do that?

Originally posted by @Spidy104 in #34 (comment)

@slycelote
Copy link
Owner Author

You copy the library into the cpplib directory.

@Spidy104
Copy link

Okay, then can it include from outside?

@Spidy104
Copy link

Like as in the caide.ini file I'll just write "-I /path/to/library"

@slycelote
Copy link
Owner Author

I think this may work as long as your library is header-only. The headers won't appear in VS solution though.
Better replace cpplib directory with a symlink to your external folder.

@Spidy104
Copy link

Okay thanks

@Spidy104
Copy link

I had a question if I wanted to include the boost library what should be done, and also in the cpplib directory if I create sub directories, then would caide be able to include them in my solution and in my submission.cpp file.

@slycelote
Copy link
Owner Author

You probably won't be able to use boost, because that library is too complicated. Subdirectories should be fine, you can try and open an issue if it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants