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

Pages: [1]
1
System / problem with compiling
« on: May 17, 2014, 12:54:45 pm »

g++ (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
i pick SFML in "includes" in main.cpp



g++ "/main.cpp" -o  "main"   -lglut -lGL -lGLU -lGLEW
In file included from ./SFML-2.1/include/SFML/Window.hpp:36,
                 from ./main.cpp:3:
/usr/include/SFML/Window/Joystick.hpp:40: error: variable ‘sf::SFML_API_IMPORT sf::Joystick’ has initializer but incomplete type
/usr/include/SFML/Window/Joystick.hpp:42: error: expected primary-expression before ‘public’
/usr/include/SFML/Window/Joystick.hpp:42: error: expected ‘}’ before ‘public’
/usr/include/SFML/Window/Joystick.hpp:42: error: expected ‘,’ or ‘;’ before ‘public’
/usr/include/SFML/Window/Joystick.hpp:144: error: expected declaration before ‘}’ token





if i comment in library //include Joystick.hpp
i get this:




g++ "/main.cpp" -o  "/main"   -lglut -lGL -lGLU -lGLEW
In file included from ./SFML-2.1/include/SFML/Window.hpp:37,
                 from ./main.cpp:3:
/usr/include/SFML/Window/Keyboard.hpp:40: error: variable ‘sf::SFML_API_IMPORT sf::Keyboard’ has initializer but incomplete type
/usr/include/SFML/Window/Keyboard.hpp:42: error: expected primary-expression before ‘public’
/usr/include/SFML/Window/Keyboard.hpp:42: error: expected ‘}’ before ‘public’
/usr/include/SFML/Window/Keyboard.hpp:42: error: expected ‘,’ or ‘;’ before ‘public’
/usr/include/SFML/Window/Keyboard.hpp:164: error: expected primary-expression before ‘key’
/usr/include/SFML/Window/Keyboard.hpp:167: error: expected declaration before ‘}’ token





i think problem is here
Config.hpp
/////////////




   #else // Linux, FreeBSD, Mac OS X

        #if __GNUC__ >= 4

            // GCC 4 has special keywords for showing/hidding symbols,
            // the same keyword is used for both importing and exporting
            #define SFML_API_EXPORT __attribute__ ((__visibility__ ("default")))
            #define SFML_API_IMPORT __attribute__ ((__visibility__ ("default")))

        #else

            // GCC < 4 has no mechanism to explicitely hide symbols, everything's exported
            #define SFML_API_EXPORT
            #define SFML_API_IMPORT

        #endif

    #endif




but how to fix it?

Pages: [1]
anything