-
Notifications
You must be signed in to change notification settings - Fork 611
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
Linker error: Undefined symbols for architecture, problem with folly #445
Comments
Hey!
|
Most of these undefined references are from other fbthrift libs like libconcurrency.a and libtranport.a by example. These are also part of fbthrift, so you will need to target them too. |
@Revaj I added those libs and still get the same results |
In your CmakeLists.txt, from 11-24 lines, are targeting only libasync.a, it needs to target the corresponding library like LIBTRANSPORT to transport. Also, I found when I compiled your example, in target_link_libraries, it requires libthriftmetadata.a. After that, it should compile. |
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 usingthrift1 --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
andthrift_cpp2_protocol_reader_container_limit
are defined by usingDECLARE_int32
. Looks like folly'sFOLLY_DECLARE_FLAG
doesn't work.This line
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.
The text was updated successfully, but these errors were encountered: