Skip to content

undefined reference was occurred with shared library #231

@toge

Description

@toge

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions