Skip to content

Linker error: Undefined symbols for architecture, problem with folly #445

@karol-bisztyga

Description

@karol-bisztyga

Hey! I'm having trouble with linking my "hello world" service. I built fbthrift successfully and I wanted to build a simple example.
Here are my files: https://github.com/karol-bisztyga/fbthrift-test
Files in gen-cpp2 are generated using thrift1 --gen mstch_cpp2 Example.thrift
When I try to build with build.sh I get following linker errors:

https://gist.github.com/karol-bisztyga/987fa29023395ef30c1bcc25f6c66bbb

I see that FLAGS_thrift_cpp2_protocol_reader_string_limit and thrift_cpp2_protocol_reader_container_limit are defined by using DECLARE_int32. Looks like folly's FOLLY_DECLARE_FLAG doesn't work.

This line

folly::f14::detail::F14LinkCheck<(folly::f14::detail::F14IntrinsicsMode)1>::check()

got me here, so maybe there are some flags that are set wrong. Any idea what that could be? Maybe I'm doing something wrong? I'm lost :(

I'm using mac os big sure 11.5.2
If you need any versions of the software, please, let me know.

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