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

Author Topic: current SVN version: samples Socket Build Problem  (Read 3273 times)

0 Members and 1 Guest are viewing this topic.

tgm

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
current SVN version: samples Socket Build Problem
« on: March 04, 2008, 06:57:37 pm »
trying to compile the current SVN project I get the following error:
Quote

/usr/include/SFML/Network/Selector.inl: In member function »Type sf::Selector< <template-parameter-1-1> >::GetSocketReady(unsigned int) const«:
/usr/include/SFML/Network/Selector.inl:128: Fehler: expected `;' before »It«
/usr/include/SFML/Network/Selector.inl:129: Fehler: »It« wurde in diesem Gültigkeitsbereich nicht definiert


"wurde in diesem Gültigkeitsbereich nicht definiert" means:
"was not defined in this scope"

Lines 128 and 129 are:
Code: [Select]

 SocketTable::const_iterator It = mySockets.find(static_cast<SocketHelper::SocketType>(i));
                if (It != mySockets.end())

looking up that stuff in Selector.hpp SocketTable is a:
std::map<SocketHelper::SocketType, Type>

But I cannot get further but this.. got no clue whats wrong.. some hint?
thx TGM
*Edit*
If I would like to add some functions to the Vec2 and Vec3 class
(dotProduct, crossProduct, scalar normalize, getLengthSQ, GetLength,angle between two vectors etc) would you like it to be a member of Vec or a function like all the other operators?

tgm

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
current SVN version: samples Socket Build Problem
« Reply #1 on: April 11, 2008, 12:17:34 pm »
Well, got nothing to do with the sockets.. but in  the current SVN versions postprocessing isn't working anymore.
The sf::PostFX::CanUsePostFX()  returns false, altough PostFX works (mostly) quite well. If I runn the post FX sample it says: "no post FX for you dude" but if I remove the check, PostFX works.. (except for the blur... )
Im running a Ubuntu system with a Nvidia 7600 GT. I even did turn of compix etc, so its not the windowmanagers fault.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
current SVN version: samples Socket Build Problem
« Reply #2 on: April 11, 2008, 03:31:58 pm »
Is it really the current SVN (which revision ?) ? Selector.inl no longer has 128 lines of code, and this issue has already been solved.

Vec2 and Vec3 classes have been renamed as well ;)

Quote
If I would like to add some functions to the Vec2 and Vec3 class
(dotProduct, crossProduct, scalar normalize, getLengthSQ, GetLength,angle between two vectors etc) would you like it to be a member of Vec or a function like all the other operators?

Adding them as free functions won't force you to modify SFML (and rewrite them on next release), so it's a much better solution.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
current SVN version: samples Socket Build Problem
« Reply #3 on: April 11, 2008, 03:45:36 pm »
There was a stupid error in the code, PostFX should now work properly :)
Laurent Gomila - SFML developer

tgm

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
current SVN version: samples Socket Build Problem
« Reply #4 on: April 11, 2008, 05:47:32 pm »
that socket thingy was old and works fine with the newest version.. (no one noticed this thread all the time^^)
Great you fixed it that fast ;) :P

 

anything