Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fitsie007 opened this issue Jun 10, 2021 · 1 comment
Open

Comments

@fitsie007
Copy link

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.

@jameswdelancey
Copy link

You can edit the kernel.py file, then restart your kernel, to add verbose logging into the gcc args to debug this on your machine:

gcc -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants