Skip to content

c++ sdk static lib can't be used, Malformed archive #3225

@vagetablechicken

Description

@vagetablechicken

make install generates libopenmldbsdk.a, then we use it, get error Malformed archive

gcc test.cpp -o test -lstdc++ -std=c++17 -Iinclude -Llib -lopenmldbsdk -lpthread
lib/libopenmldbsdk.a: error adding symbols: Malformed archive
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationsdkopenmldb java/python sdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions