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

Commandline to add libraries #29

Open
jaromil opened this issue Oct 2, 2024 · 3 comments
Open

Commandline to add libraries #29

jaromil opened this issue Oct 2, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@jaromil
Copy link
Member

jaromil commented Oct 2, 2024

Test ways to link libraries, either by adding them as commandline arguments or by using a -l option

The -l option can be easily implemented using:

#pragma comment(lib, "OtherLib700.lib")

internally added on top of the source to be executed.

@jaromil jaromil added the enhancement New feature or request label Oct 2, 2024
@jaromil
Copy link
Member Author

jaromil commented Nov 28, 2024

This now works adding library files directly as arguments together with sources.

For compatibility with GCC notation, we still need to have a working -L and -l implementation.

@jaromil
Copy link
Member Author

jaromil commented Dec 4, 2024

This turns out to be tricky, on some platforms work, on windows seem not (needs .DLL files in same dir...)

We need to make a proper grid / table of behaviors and clarify in the documentation @matteo-cristino your help is appreciated!

@jaromil
Copy link
Member Author

jaromil commented Jan 7, 2025

Implemented correct -l internally in CJIT since 0.15 so now this flag works as expected on gnu/linux systems.

It can be improved on Windows with a %s.dll file path rendering, which will anyway always need the lib to be in system paths or placed together in the same source path.

@jaromil jaromil self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant