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

Pages: [1]
1
General / SFML with Netbean possible linking error.
« on: May 09, 2012, 04:14:04 am »
Hey there

I think that my problem is a library linking issue. I'm coding in C++ in Netbeans on Windows 7. I'm also using the SFML 2.0 RC.

Here's the error report:

Code: [Select]
In file included from /cygdrive/C/******/SFML-2.0-rc/include/SFML/System.hpp:32:0,
                 from /cygdrive/C/******/SFML-2.0-rc/include/SFML/Window.hpp:32,
                 from /cygdrive/C/******/SFML-2.0-rc/include/SFML/Graphics.hpp:32,
                 from welcome.cc:1:
/cygdrive/C/******/SFML-2.0-rc/include/SFML/Config.hpp:65:6: error: #error This operating system is not supported by SFML library
In file included from /cygdrive/C/******/SFML-2.0-rc/include/SFML/Window.hpp:40:0,
                 from /cygdrive/C/Users/******/SFML-2.0-rc/include/SFML/Graphics.hpp:32,
                 from welcome.cc:1:
/cygdrive/C/******/SFML-2.0-rc/include/SFML/Window/Window.hpp:105:34: error: expected ‘)’ before ‘handle’
/cygdrive/C/******/SFML-2.0-rc/include/SFML/Window/Window.hpp:141:17: error: ‘WindowHandle’ has not been declared
/cygdrive/C/******/SFML-2.0-rc/include/SFML/Window/Window.hpp:424:5: error: ‘WindowHandle’ does not name a type
In file included from /cygdrive/C/******/SFML-2.0-rc/include/SFML/Graphics.hpp:40:0,
                 from welcome.cc:1:
/cygdrive/C/******/SFML-2.0-rc/include/SFML/Graphics/RenderWindow.hpp:93:40: error: expected ‘)’ before ‘handle’


Here's my setup:
In tools -> C/C++ -> Code Assistance ->C++ compiler I've included the \SFML-2.0-rc\include\ directory.
In Project Properties -> build -> C++ Compiler -> included directories the \SFML-2.0-rc\include\ directory is there.
In Project Properties -> build -> Linker -> Libraries I have sfml-window, sfml-system, sfml-graphics, sfml-audio, sfml-main.
 

I think that's it. Other than that it's the fresh install. Any thoughts about where I went wrong during the Setup?

Pages: [1]
anything