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 - keishimon

Pages: [1]
1
Graphics / Re: [SOLVED] Fail to Build with Error C2589 in Rect.inl
« on: November 01, 2019, 09:20:55 am »
Thank you!
As you mentioned #define NOMINMAX prior to windows.h fixed the compiler error :)

2
Graphics / [SOLVED] Fail to Build with Error C2589 in Rect.inl
« on: November 01, 2019, 06:19:55 am »
I fail to build my VS solution with compile error C2589 in Rect.inl.
Someone please guide me how to fix.

The only two error messages when I try to build are follows :
C:\SFML\SFML-2.5.1\include\SFML\Graphics\Rect.inl(81,19): error C2589: '(': illegal token on right side of '::'.
C:\SFML\SFML-2.5.1\include\SFML\Graphics\Rect.inl(114,21): error C2589: '(': illegal token on right side of '::'

I use Visual Vtudio 2019 Community Edition and SFML 2.5.1 static ver.
I have set up following this tutorial https://www.sfml-dev.org/tutorials/2.5/start-vc.php and successfully compiled and ran the test code.

I include <SFML/Graphics.hpp>, declare using namespace sf; and use classes RenderWindow, VideoMode, Texture, Sprite, IntRect, Clock, Event, and Keyboard (I might overlook though).

Pages: [1]