-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Libraries for your code available on the site
Compiler Explorer has a number of pre-installed libraries for some languages. By selecting the needed version from the Library dropdown present in every compiler navbar pane, the library is made available for the compilation process.
(In the case of C/C++, its include path is added for you to the compiler execution.
You can also use them by manually adding the -I<include_path>
compiler option where <include_path>
is the Include path of the corresponding library)
The list of available libs can be found at https://godbolt.org/admin/libraries.html and is always up-to-date
Compiler Explorer also has the ability to include raw text to your source, by abusing the #include
directive.
#include <url_to_text_to_include>
...
(See this link a live example: https://godbolt.org/z/Pv0K0c)
Note that the URL has to allow for cross domain requests for this to work.
If you notice the wiki is outdated, please let us know so we can fix it as soon as posible!