1
C / can't set sfVector2f in 2.1?
« on: May 07, 2014, 01:01:50 am »
first of all thanks for development with C sfml, appreciate it too much; however it seems i am in need of some help!
every time i type:
sfVector2f v1(100.f,100.f);
or anything of the sort; and i try compiling, this is what i get
1>sfml_test2.c(20): error C2275: 'sfVector2f' : illegal use of this type as an expression
1> C:\Program Files (x86)\CSFML-2.1\include\SFML/System/Vector2.h(64) : see declaration of 'sfVector2f'
how do i define a new vector then? anybody help me? it seems it is an illegal use of the type as an expression what i am doing but; why?
the usage in the documentation reads:
http://www.sfml-dev.org/documentation/2.1/classsf_1_1Vector2.php
sf::Vector2f v1(16.5f, 24.f);
that's the example code.
i just don't get it :S i can't make the stuff move without this; and setX doesn't work it seems;
i can't set make the 2 floats into a vector no matter what the manual says!!! sure could use a hand
every time i type:
sfVector2f v1(100.f,100.f);
or anything of the sort; and i try compiling, this is what i get
1>sfml_test2.c(20): error C2275: 'sfVector2f' : illegal use of this type as an expression
1> C:\Program Files (x86)\CSFML-2.1\include\SFML/System/Vector2.h(64) : see declaration of 'sfVector2f'
how do i define a new vector then? anybody help me? it seems it is an illegal use of the type as an expression what i am doing but; why?
the usage in the documentation reads:
http://www.sfml-dev.org/documentation/2.1/classsf_1_1Vector2.php
sf::Vector2f v1(16.5f, 24.f);
that's the example code.
i just don't get it :S i can't make the stuff move without this; and setX doesn't work it seems;
i can't set make the 2 floats into a vector no matter what the manual says!!! sure could use a hand
