TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 09 Apr 2012 01:50 PM |
We (le me + le su8) are gettings errors from the SFML thingy, while it worked in another project. It has to do with the File includment (#include "SFML/blahblah")...IT'S ANNOYING AND WE ARE STARTING TO HATE SFML :c (A |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2012 02:02 PM |
| it would be easier if you posted the actual error you are receiving. we cant fix it if you are not specific, blah blah blah, doesnt help |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 09 Apr 2012 02:10 PM |
| Like I said, it says that SFML is undefined/undetectable, but I located all the paths and stuff. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 09 Apr 2012 02:14 PM |
| And it worked on le other project.. :/ |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 09 Apr 2012 02:29 PM |
| You probably set it up incorrectly. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 09 Apr 2012 02:31 PM |
| But.. For the third time it worked on le other project qq |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 09 Apr 2012 02:32 PM |
Yea well you didn't set this particular one up correctly.
Can't say anything else. Not enough info. |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
|
| 09 Apr 2012 02:36 PM |
| Did you link the necessary .lib files to the project? |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 09 Apr 2012 02:43 PM |
@legnd: I'll try that tommorow.
@local: Yus. |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 09 Apr 2012 02:47 PM |
Btw, there was also something about Game.GetEvent(), wich didn't work, but it did in le tutorial vid.
Y EET NUH WORKS (be quatre-checked the script, but everything was the same, including Capatalization, semi-colons..everything QQ) |
|
|
| Report Abuse |
|
|
pighead10
|
  |
| Joined: 03 May 2009 |
| Total Posts: 10341 |
|
|
| 09 Apr 2012 03:42 PM |
| You set the project up wrong. What actually is the error when you compile it |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 09 Apr 2012 07:49 PM |
Compiler? IDE? Specific errors?
we need that info bois |
|
|
| Report Abuse |
|
|
miloguy
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 7702 |
|
|
| 09 Apr 2012 08:51 PM |
| I hate C++ only because of all the including and linking you have to do to set up a simple graphics library |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 10 Apr 2012 12:12 AM |
| Well.. We kinda like solved le problem :P |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2012 07:09 AM |
| I hate C++ because linking the libraries and stuff always takes long as i have to figure out what files go where and how do i even get those files (WAT R MAKEFIL UMG Y IT NO DO THING) and because i always get fancy template/declaration/definition/watever issues that get fixed by some random thing i found after googling for hours. |
|
|
| Report Abuse |
|
|
pighead10
|
  |
| Joined: 03 May 2009 |
| Total Posts: 10341 |
|
|
| 10 Apr 2012 07:17 AM |
"(WAT R MAKEFIL UMG Y IT NO DO THING) "
you gotta get something to make it work on non unix stof
personally i give up as soon as i see 'makefile' |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 10 Apr 2012 07:22 AM |
| I wish there were some/was a GL(s) build into the IDEs. |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2012 07:40 AM |
| I think i used makefile in SFML, had to download dat stoopid program and set 9001 parameters and do it twice to get it work properly, and even then i didnt know if i was supposed to use it only for debugging and wether it was dll or a normal lib >.< |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
| |
|
pighead10
|
  |
| Joined: 03 May 2009 |
| Total Posts: 10341 |
|
|
| 10 Apr 2012 07:41 AM |
"I think i used makefile in SFML,"
you mean cmake? |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 10 Apr 2012 08:00 AM |
We linked the stuff, and compiled it, and we got thse errors:
Warning 1 warning C4832: token '.' is illegal after UDT 'sf::Event' c:\users\myrco\documents\lesfmltest\lesfmltest\main.cpp 13 1 leSFMLtest
Error 2 error C2275: 'sf::Event' : illegal use of this type as an expression c:\users\myrco\documents\lesfmltest\lesfmltest\main.cpp 13 1 leSFMLtest
Error 3 error C2228: left of '.Closed' must have class/struct/union c:\users\myrco\documents\lesfmltest\lesfmltest\main.cpp 13 1 leSFMLtest
The code is :
#include "SFML/Graphics.hpp" // the orginal code uses arrows #include "SFML/Window.hpp"
int main() { sf::RenderWindow Game(sf::VideoMode(800,600,32), "SFML Blank Window"); sf::Event Event;
while (Game.isOpen()) { while (true) { if (Event.type == sf::Event.Closed) Game.close(); }
Game.clear(); Game.display(); } return 0; }
|
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 10 Apr 2012 08:01 AM |
Sorry it should be
while (Game.GetEvent(Event)) |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 10 Apr 2012 08:01 AM |
4 IntelliSense: class "sf::RenderWindow" has no member "GetEvent" c:\users\myrco\documents\lesfmltest\lesfmltest\main.cpp 9 14 leSFMLtest
|
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
| |
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
| |
|