Check our examples section. It will guide you through basic usage patterns as well as a more advanced ones (on real-world projects).
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 (
include
andsys_include
) - Bundled headers from
cxgo
Having this in mind you could either:
- Add a config file directive:
sys_include: ['/your/path/here']
(orinclude
if 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
See the corresponding contribution guide section.
See the corresponding contribution guide section.