Skip to content

resolve relative include paths #88

Description

@pierrec

Currently, when integrating C libraries, the include paths must be absolute or the C compiler does not find them. It would be nice if So would resolve the relative include paths to the path where it temporarily builds the C files.

Example:
this fails as the included file is relative to the main.go location.

// main.go
package main

//so:include "lib3p/glfw/include/GLFW/glfw3.h"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions