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

undefined reference was occurred with shared library #231

Open
toge opened this issue Sep 15, 2023 · 1 comment
Open

undefined reference was occurred with shared library #231

toge opened this issue Sep 15, 2023 · 1 comment

Comments

@toge
Copy link

toge commented Sep 15, 2023

When I compiled uvwasi test example with shared library, following compilation errors were occurred.

test_package.c:(.text.startup+0xa4): undefined reference to `uvwasi_init'
test_package.c:(.text.startup+0xae): undefined reference to `uvwasi_destroy'

I think this is caused by -fvisibility=hidden.

Are there any way to solve it?

Environment:
OS: Fedora Linux 38
Compiler: gcc 13.1.1
Version: uvwasi 0.0.19

@phated
Copy link
Contributor

phated commented Sep 27, 2023

Can you provide a reproduction repository? I'm pretty novice with CMake but can usually tweak things until they work.

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