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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pyronide

Pages: [1]
1
SFML projects / Re: New Project, need programmers and graphics
« on: April 13, 2012, 07:56:12 am »
sounds like fun... could you provide more info to the forum.  You would probably get more response if you had more than just a post about an Idea.

  • maybe something on your website - something else besides flash! :-\
  • concept art/primer code?

I've written about a dozen "pre-alpha" versions of the same game with other libraries over the past year or so, and I have written more complete code with SFML in a month than I have with any other library.  I've got some steam going, so lets see if this idea can get going too!

2
General discussions / Re: Extremely important question for Friday
« on: April 05, 2012, 04:19:30 am »
Everybody knows.. those are power pills  :D

3
General / [SOLVED] cannot compile; no match for operators '<' and '
« on: March 17, 2012, 06:34:55 pm »
thanks! that did the trick!

4
General / [SOLVED] cannot compile; no match for operators '<' and '
« on: March 17, 2012, 07:55:22 am »
Hello!

I am relatively new to C++ and sfml, so this question might be obvious to some:

I am attempting to build the following:
Code: [Select]
#include<SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while(Clock.getElapsedTime() < 5.f)
    {
        std::cout << Clock.getElapsedTime() << std::endl;
        sf::sleep(0.5f);
    }

    return 0;
}


and I recieve compiler errors, telling me that it cannot find a match for an operater that takes a float as an argument: specifically:
Code: [Select]

/data/workspace/SFML-Sandbox/main.cpp:7:36: error: no match for ‘operator<’ in ‘Clock.sf::Clock::getElapsedTime() < 5.0e+0f’
/data/workspace/SFML-Sandbox/main.cpp:7:36: note: candidates are:
/usr/include/SFML/System/String.hpp:440:22: note: bool sf::operator<(const sf::String&, const sf::String&)
/usr/include/SFML/System/String.hpp:440:22: note:   no known conversion for argument 1 from ‘sf::Time’ to ‘const sf::String&’
/usr/include/SFML/System/Time.hpp:185:22: note: bool sf::operator<(sf::Time, sf::Time)
/usr/include/SFML/System/Time.hpp:185:22: note:   no known conversion for argument 2 from ‘float’ to ‘sf::Time’

and
Code: [Select]

/data/workspace/SFML-Sandbox/main.cpp:9:43: error: no match for ‘operator<<’ in ‘std::cout << Clock.sf::Clock::getElapsedTime()’


I have tried compiling this from both code::blocks and eclipse, as well as the command line - for both IDEs, I am using the defaults(as per the archlinux official repos), only ensuring that the appropriate libraries are listed - although I am not even getting object code to link!  I have also tried both the git snapshot, the 1.6 version from AUR, and the archlinux community repos.


are there any additional steps I need to take when compiling?


if so, how would I propose an edit to the tutorial? (it doesn't mention any specific steps for compilation.)

thank you for your time!

Pages: [1]