Skip to content

Conversation

@sasawat
Copy link

@sasawat sasawat commented Jan 10, 2018

I ran into an linking error undefined reference to g_thread_init when building on Ubuntu 16.04

Adding target_link_libraries(thetarget gthread-2.0) to the relevant CMakeLists.txt files fixes this. This is based on advice from here https://bugs.launchpad.net/shardbridge/+bug/1119471 where they suggested adding the -lgthread-2.0 flag.

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

Successfully merging this pull request may close these issues.

1 participant