Frequently Asked Questions
January 11, 2021 ยท View on GitHub
How to use it?
Check our examples section. It will guide you through basic usage patterns as well as a more advanced ones (on real-world projects).
How to fix: "include file not found: xyz.h"?
This means that cxgo was unable to locate the included file.
Include lookup considers paths in the following order:
- Directory of the source file:
./xyz.h - Local include directory:
./include/xyz.h(or./includes/xyz.h) - Any user-defined include paths from the config (
includeandsys_include) - Bundled headers from
cxgo
Having this in mind you could either:
- Add a config file directive:
sys_include: ['/your/path/here'](orincludeif the file is included as"xyz.h"and not<xyz.h>) - Find and copy an included file into
./include - If this is a header in question is from a C stdlib, consider contributing it to
cxgo
How to add support for a new header file?
See the corresponding contribution guide section.
How to add support for a new function in existing library?
See the corresponding contribution guide section.