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

Author Topic: Can't compile SFML 2 FTP sample  (Read 1814 times)

0 Members and 1 Guest are viewing this topic.

cBox

  • Newbie
  • *
  • Posts: 1
    • View Profile
Can't compile SFML 2 FTP sample
« on: July 04, 2011, 08:03:50 pm »
Hey, I'm at the moment getting familliar with SFML, love it so far, but it seems that there are no tutorial pages for version 2.x so I'm using the samples included in the snapshot. I get the following errors while trying to compile the Ftp.cpp example.

Code: [Select]
1>main.obj : error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall sf::Ftp::Response::GetMessageW(void)const " (?GetMessageW@Response@Ftp@sf@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
1>main.obj : error LNK2001: unresolved external symbol "public: class sf::Ftp::Response __thiscall sf::Ftp::DeleteFileW(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?DeleteFileW@Ftp@sf@@QAE?AVResponse@12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: class sf::Ftp::Response __thiscall sf::Ftp::CreateDirectoryW(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?CreateDirectoryW@Ftp@sf@@QAE?AVResponse@12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)


I'm sure everything is set up correctly because I'm able to compile any other examples just fine. In fact this is the first error SFML has given me yet.

I hope someone can point out what I'm doing wrong and why I'm such an idiot.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Can't compile SFML 2 FTP sample
« Reply #1 on: July 04, 2011, 09:58:14 pm »
You're probably including windows.h before SFML headers, and it defines macros such as GetMessage, CreateDirectory, etc.
Laurent Gomila - SFML developer