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

How to run a program relying on external functions? #332

Open
thealberto opened this issue Mar 4, 2018 · 1 comment
Open

How to run a program relying on external functions? #332

thealberto opened this issue Mar 4, 2018 · 1 comment

Comments

@thealberto
Copy link

Hi all,
running the latest version and clang-5.0 I was able to obtain the .ll of pngpixel. I can successfully use it but at the moment I try to run the main function obviously I cannot because for example png_free is an external function. Is it possible to solve this problem maybe obtaining the ll for every external dependency and link them all together?

Thanks

@alendit
Copy link
Contributor

alendit commented Jun 13, 2018

Is png_free defined in a dynamic library (*.so/*.dll) somewhere? If so, you can link it with load_library_permanently (see docs).

I don't see any way to link in a static library/object files (see #311).

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