Skip to content

Unable to load external libraries in Windows using cflags/ldflags #76

@fitsie007

Description

@fitsie007

The following works on Mac/Linux to import the MySQL library, but does not work on Windows.
Is there a specific requirement for specifying Windows paths in the cflags/ldflags?

//%cflags:-std=c99 -L/usr/local/mysql/lib -I/usr/local/mysql/include -lmysqlclient

Windows paths have drive letters, spaces, etc, and resemble the following:
//%cflags:-std=c99 -L"C:program Files/.../mysql/lib"

I tried changing the path to "./program Files/.../mysql/lib" with variants of "\" or "//", but this still throws errors that the files cannot be found.

Any suggestion for a fix would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions