So I've been excited to use the latest SFML, but I'm getting some weird warnings. Things still work and my program runs, but I'm not sure if this is just my build system or if it's an issue with SFML. I'm using the System and Network modules of SFML, and I've build and configured them with no warnings or errors. However, my program is trying to use the libraries and I'm getting the following warnings at link time:
g++ -g -L../sfml/lib -lsfml-system-s -lsfml-network-s -L../protobuf/lib -lprotobuf -I../sfml/include -I../protobuf/include -o client main.cpp Message.pb.cc
ld: warning: sf::UdpSocket::~UdpSocket()has different visibility (hidden) in ../sfml/lib/libsfml-network-s.a(UdpSocket.cpp.o) and (default) in /tmp/ccZt6Ur6.o
ld: warning: sf::UdpSocket::~UdpSocket()has different visibility (hidden) in ../sfml/lib/libsfml-network-s.a(UdpSocket.cpp.o) and (default) in /tmp/ccZt6Ur6.o
ld: warning: vtable for sf::UdpSockethas different visibility (hidden) in ../sfml/lib/libsfml-network-s.a(UdpSocket.cpp.o) and (default) in /tmp/ccZt6Ur6.o
ld: warning: typeinfo for sf::UdpSockethas different visibility (hidden) in ../sfml/lib/libsfml-network-s.a(UdpSocket.cpp.o) and (default) in /tmp/ccZt6Ur6.o
ld: warning: typeinfo name for sf::UdpSockethas different visibility (hidden) in ../sfml/lib/libsfml-network-s.a(UdpSocket.cpp.o) and (default) in /tmp/ccZt6Ur6.o
It's complaining about the visilbility of the UdpSocket destructor, as well as the vtable and typeinfo for UdpSocket. I'm positive the headers and source files are all the same version, as I just did a clean checkout. I can't see anything wrong with UdpSocket either.
Does anyone thing this is an issue with SFML or is it probably an issue with my computer? What more can I do to narrow down the problem?
If needed, my setup is:
OS X 10.6
g++ 4.2.1
SFML revision d592b2a