Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML & Qt Error  (Read 1609 times)

0 Members and 1 Guest are viewing this topic.

atomen

  • Newbie
  • *
  • Posts: 17
    • View Profile
SFML & Qt Error
« on: March 23, 2011, 07:34:05 pm »
Hi!

I am not completely sure this problem is related with SFML AND qt or if it's just random.
I've been programming an application in qt and I was just gonna start the sfml part but whenever I include a
sfml header, no matter what header I chose, I receive this error on line 37 in the file which includes the sfml header:
Quote
1>c:\...\mainwindow.h(37) : error C2143: syntax error : missing '}' before '('

Then you may ask; what's on line 37... Well:
Code: [Select]

// Mainwindow.h
namespace EDIT
{
enum ACTION
{
UNDO,
REDO,
CUT,
COPY,
PASTE,
DELETE // <-- This is line 37
};
}
I have no clue what's causing this problem but any help is greatly appreciated

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML & Qt Error
« Reply #1 on: March 23, 2011, 07:48:15 pm »
DELETE is a Windows macro, you must find another identifier -- or avoid including windows.h (which should be ok with SFML 2).
Laurent Gomila - SFML developer