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.


Topics - TickingHands

Pages: [1]
1
General / [Solved]So much for this tutorial...
« on: December 03, 2009, 03:03:51 am »
Edit: Solved

Edit: Okay, scratch that. It isn't just that line or problem. There are too many to type out lol. If you could just compile the code( download below ) and help me fix the problems that would very nice of you and would be awesome.

Alright, I'm doing the tutorials here http://redkiing.wordpress.com/category/games/sfml/ .

My problem is that there is a line of code

Code: [Select]

sf::Color::Color boardColor;


Which renders many nasty errors( In fact all the errors I have are from this )

Errors:
Code: [Select]

Error 1 error C2146: syntax error : missing ';' before identifier 'boardColor'

Error 2 error C2602: 'sf::Color::{ctor}' is not a member of a base class of 'Board'

etc...


This line is in the class Board. The corresponding piece of code in the .cpp file is this

Code: [Select]

boardColor = sf::Color::Color(0, 102, 153 );


If the rest of the code is needed, I can either put it on here or you can download the source code here http://www.mediafire.com/?lzijniewqww

2
General / Two linker errors (Doing first tutorial)
« on: October 12, 2009, 07:36:23 pm »
Well I am starting SFML with Visual Studio 2008.

I set up the library and include paths. I also included the sfml-system-d.lib in the Additional Dependencies located in the Linker>Input in the projects properties.

I still get these two errors when I try to compile/debug:
Code: [Select]

Error 1 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRTD.lib

Error 2 fatal error LNK1120: 1 unresolved externals C:\Documents and Settings\User\My Documents\Visual Studio 2008\Projects\SFML_Testing\Debug\SFML_Testing.exe


Am I still missing something? Need more information or pictures?

Thanks in advance. (Sorry if there were plenty of other threads like this, I didn't find the solution in them)

Pages: [1]