slycelote / caide

Automates certain common tasks that you do during programming competitions
86 stars 19 forks source link

Including Prewritten Headers #38

Closed Spidy104 closed 3 years ago

Spidy104 commented 3 years ago

In the readme, it was told to put all my pre-written headers in the cpplib directory. What if we put the whole directory in the cpplib directory so will it be able to parse the other headers as I have something like this ... numbers/ /...Headers Graphs/ /...Headers

slycelote commented 3 years ago

Yes, it will work as long as you set up include paths correctly in caide.ini

Spidy104 commented 3 years ago

Then Copy Pasting the files into the cpplib directory would not be required?

What if the place where my prewritten code is present in other subdirectories in a particular directory, then including that particular directory which contains all my subdirectories then would it be able to parse them.

slycelote commented 3 years ago

Headers may be in any directory. cpp files must be in cpplib.

Spidy104 commented 3 years ago

my prewritten code are all present in header files nothing in .cpp files everything is present in .cpp. And only for the headers I have to include the paths in the caide.ini only?

slycelote commented 3 years ago

Visual Studio extension by default will only add cpplib as include directory. You'll have to add other include directories in vs_common.props.

Spidy104 commented 3 years ago

Ok Thanks, then what If I copy paste all those directories in the cpplib directory.

slycelote commented 3 years ago

It will work. Instead of copying you can also use directory symlinks.

Spidy104 commented 3 years ago

Thanks for me with and sorry for those useless questions, till an another error comes I am closing this issue