SFML community forums

General => General discussions => Topic started by: bradleymeck on September 04, 2010, 11:24:35 pm

Title: XOpenDisplay
Post by: bradleymeck on September 04, 2010, 11:24:35 pm
Hi, I am writing a binding to node.js for sfml and I managed to statically link in the sfml libraries fine, but am getting an error when the result is included using dlopen.

undefined symbol: XOpenDisplay

statically including libX11.a fixed that error, but it seems there is a waterfall of libraries i would have to include to remove all the errors (xcb etc.)

Any suggestions on a way around this?
Title: XOpenDisplay
Post by: Laurent on September 05, 2010, 10:15:14 am
When building a static library, there's no link step. Therefore, you need to link all the external dependencies of SFML to your final application.