SFML community forums

Help => Network => Topic started by: Brodal on January 03, 2013, 04:09:19 pm

Title: Problems with sf::time::zero when using sf::tcpSocket
Post by: Brodal on January 03, 2013, 04:09:19 pm
I keep getting this problem Error   1   error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sf::Time const sf::Time::Zero" (__imp_?Zero@Time@sf@@2V12@B). I found an old thread that said that this was fixed so i thought that i maybe had an old version of SFML 2.0 or something so I downloaded the latest snapshot but im still getting that error and I can't figure out why it is happening.
Here is a minimal test program that recreates this problem for me

#include <SFML/Network.hpp>
#include <iostream>

using namespace std;

int main()
{
        sf::TcpSocket client;
        if ( client.connect("whateveriphere", 4567) != sf::Socket::Done )
                cout << "Failed to connect" << endl;
        return 0;
}
Title: Re: Problems with sf::time::zero when using sf::tcpSocket
Post by: Laurent on January 03, 2013, 04:17:58 pm
Do you link to sfml-system?
Title: Re: Problems with sf::time::zero when using sf::tcpSocket
Post by: Brodal on January 03, 2013, 04:19:49 pm
ohh.. wow... that was embarrasing :o gonna blame it on the lack of sleep ;D thanks alot! :D