Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problems with sf::time::zero when using sf::tcpSocket  (Read 2504 times)

0 Members and 1 Guest are viewing this topic.

Brodal

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • Email
Problems with sf::time::zero when using sf::tcpSocket
« 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;
}
« Last Edit: January 03, 2013, 04:24:15 pm by Laurent »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problems with sf::time::zero when using sf::tcpSocket
« Reply #1 on: January 03, 2013, 04:17:58 pm »
Do you link to sfml-system?
Laurent Gomila - SFML developer

Brodal

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • Email
Re: Problems with sf::time::zero when using sf::tcpSocket
« Reply #2 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

 

anything