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 - timothy.wright.software

Pages: [1]
1
General / Re: SFML 2.1 Visual Studio Tutorial not working
« on: August 09, 2014, 04:57:10 pm »
I did verify that if I statically link all libraries, then their order doesn't matter.  Which is a lot easier because I only have to cover it once.

2
General / Re: SFML 2.1 Visual Studio Tutorial not working
« on: August 07, 2014, 04:27:44 pm »
This was just the simple example code from the tutorial, which only uses the libraries I linked to draw a green circle.  I can't comment on the order other than if I move the system library it no longer links.


3
General / Re: SFML 2.1 Visual Studio Tutorial not working
« on: August 07, 2014, 03:16:39 pm »
I doubled checked the order.  At least on my machine, Windows 7, Visual Studio 2010, the library order you posted doesn't seem to work.

4
General / Re: SFML 2.1 Visual Studio Tutorial not working
« on: August 07, 2014, 03:13:34 pm »
OK.  It is working.  These are my static libraries:

sfml-system-s-d.lib
sfml-graphics-s-d.lib
sfml-window-s-d.lib
sfml-main-d.lib

If you add the libraries following the tutorial they would be in this order:

sfml-graphics-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib
sfml-main-d.lib

It was only by luck that I figured out that the system library needs to be first or the program won't link correctly.  That seems like an important point that should be added to the tutorial. 

I tried moving the libraries around, but could only get it to break if the system library isn't first.  Not a big deal but I couldn't figure out if there are any other orders that break it.


5
General / Re: SFML 2.1 Visual Studio Tutorial not working
« on: August 07, 2014, 02:58:22 pm »
I added the sfml-system-s-d.lib but that didn't fix the problem.

This error is new to me:

warning LNK4099: PDB 'sfml-main-d.pdb' was not found with 'sfml-main-d.lib(SFML_Main.cpp.obj)'

6
General / SFML 2.1 Visual Studio Tutorial not working
« on: August 07, 2014, 05:48:57 am »
Tried the Visual Studio tutorial, but no luck.

Output from the console:

1>------ Build started: Project: vs_test, Configuration: Debug Win32 ------
1>HelloSFML.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::String::String(char const *,class std::locale const &)" (??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function _main
1>sfml-window-s-d.lib(Window.cpp.obj) : error LNK2001: unresolved external symbol "public: static class sf::Time const sf::Time::Zero" (?Zero@Time@sf@@2V12@B)
1>sfml-window-s-d.lib(Window.cpp.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function "public: __thiscall sf::Window::Window(void)" (??0Window@sf@@QAE@XZ)
1>sfml-window-s-d.lib(JoystickImpl.cpp.obj) : error LNK2001: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::err(void)" (?err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ) referenced in function "int __cdecl parse_png_file(struct png *,int,int)" (?parse_png_file@@YAHPAUpng@@HH@Z)
1>sfml-graphics-s-d.lib(Image.cpp.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::err(void)" (?err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)
1>sfml-graphics-s-d.lib(GLCheck.cpp.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::err(void)" (?err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::err(void)" (?err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)
1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::err(void)" (?err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)
1>sfml-window-s-d.lib(Window.cpp.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::err(void)" (?err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)

.. bunch more stuff...

I've been programming for a long time, and I did triple check that I have the correct version of SFML for Visual Studio 10, have the include folder and lib folder defined in the project, added the

sfml-main-d.lib
sfml-window-s-d.lib
sfml-graphics-s-d.lib

static libraries (in that order), and added the SFML_STATIC pre-processor macro.

Still doesn't work, but I'm not sure. 

7
General / Re: Wanted to say Hi.
« on: August 06, 2014, 05:46:09 pm »
If you don't have a specific problem with your code, it might be best to use the Projects forum and then state that you'd like people to review the code.

I'm sure that there will soon be replies that tell you that C++ should be taught in console form until mastered before even touching SFML but if it works for you - and makes it more visually interesting for your students and therefore more likely that they'll learn - good luck to you!  :)

I had this same discussion with my publisher.  She's of the mind that kids just don't stick with "boring" console apps.  There are so many C++ console tutorials anyway, I don't think something different can hurt.

8
General / Re: AW: Wanted to say Hi.
« on: August 05, 2014, 06:28:56 pm »
Hello! :)

Just out of curiosity, what's the average age of the kids you mentioned?

It's a game programming course for teens, but really could be for anyone wanting to get into programming.

9
General / Re: Wanted to say Hi.
« on: August 05, 2014, 06:28:14 pm »
Hi and welcome :)

The forum you choose to post them on could be Projects or Help, depending on what sort of feedback you require. What does review mean in this case?

Code review of the simple examples to make sure there isn't a better/easier way.  None of the example will be very difficult from a programming point of view.  But since I am new to the API I thought it couldn't hurt.

10
General / Wanted to say Hi.
« on: August 05, 2014, 05:45:30 pm »
Hello everyone.  I'm working on teaching C++ game programming to kids, and I think SFML is the answer.  The founder suggested I post my code examples on this forum for review. 

Which is the best forum for these kinds of posts?

Pages: [1]
anything