![]() ![]() Note that include_path must be the absolute path of the folder, meaning it starts from your computer’s root directory, /. ![]() If you use the compile argument -Iinclude_path with g++, you can specify additional folders for both #include "file" and #include to search for file However, you should not use #include "file" for library files to make your code more understandable. If the file you are trying to include does not exist in your local folder the preprocessor then treats your #include "file" line like a #include line, searching the C++ library files. /home/cs104/hw-student/hw1/extra/file2.h would require #include "extra/file2.h". ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |