So I tried to use C++ feature...

…and it seems compiler doesn’t recognize “namespace” keyword which renders it useless. That, or probably I did something wrong… again.

www2.zippyshare.com/v/91558630/file.html ← this is the exact game which causes compiler to puke.

Detailed log (with error messages)

[code]In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:37:
In file included from include/linux/usr/include/c++/4.6/string:40:
include/linux/usr/include/c++/4.6/bits/stringfwd.h:42:1: error: unknown type name ‘namespace’
namespace std _GLIBCXX_VISIBILITY(default)
^
include/linux/usr/include/c++/4.6/bits/stringfwd.h:42:43: error: expected ‘;’ after top level declarator
namespace std _GLIBCXX_VISIBILITY(default)
^
;
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:37:
In file included from include/linux/usr/include/c++/4.6/string:41:
In file included from include/linux/usr/include/c++/4.6/bits/char_traits.h:41:
In file included from include/linux/usr/include/c++/4.6/bits/postypes.h:41:
include/linux/usr/include/c++/4.6/cwchar:63:1: error: unknown type name ‘namespace’
namespace std
^
include/linux/usr/include/c++/4.6/cwchar:63:14: error: expected ‘;’ after top level declarator
namespace std
^
;
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:37:
In file included from include/linux/usr/include/c++/4.6/string:44:
In file included from include/linux/usr/include/c++/4.6/bits/localefwd.h:41:
In file included from include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/c++locale.h:41:
include/linux/usr/include/c++/4.6/clocale:52:1: error: unknown type name ‘namespace’
namespace std
^
include/linux/usr/include/c++/4.6/clocale:52:14: error: expected ‘;’ after top level declarator
namespace std
^
;
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:37:
In file included from include/linux/usr/include/c++/4.6/string:44:
In file included from include/linux/usr/include/c++/4.6/bits/localefwd.h:43:
include/linux/usr/include/c++/4.6/cctype:63:1: error: unknown type name ‘namespace’
namespace std
^
include/linux/usr/include/c++/4.6/cctype:63:14: error: expected ‘;’ after top level declarator
namespace std
^
;
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:37:
In file included from include/linux/usr/include/c++/4.6/string:53:
In file included from include/linux/usr/include/c++/4.6/bits/basic_string.h:40:
In file included from include/linux/usr/include/c++/4.6/ext/atomicity.h:34:
In file included from include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/gthr.h:162:
In file included from include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/gthr-default.h:41:
In file included from /usr/include/pthread.h:25:
/usr/include/sched.h:66:57: warning: declaration of ‘struct timespec’ will not be visible outside of this function
extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
^
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:37:
In file included from include/linux/usr/include/c++/4.6/string:53:
In file included from include/linux/usr/include/c++/4.6/bits/basic_string.h:40:
In file included from include/linux/usr/include/c++/4.6/ext/atomicity.h:34:
In file included from include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/gthr.h:162:
In file included from include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/gthr-default.h:41:
In file included from /usr/include/pthread.h:26:
/usr/include/time.h:163:21: error: field has incomplete type ‘struct timespec’
struct timespec it_interval;
^
/usr/include/time.h:163:12: note: forward declaration of ‘struct timespec’
struct timespec it_interval;
^
/usr/include/time.h:164:21: error: field has incomplete type ‘struct timespec’
struct timespec it_value;
^
/usr/include/time.h:163:12: note: forward declaration of ‘struct timespec’
struct timespec it_interval;
^
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:37:
In file included from include/linux/usr/include/c++/4.6/string:53:
In file included from include/linux/usr/include/c++/4.6/bits/basic_string.h:40:
In file included from include/linux/usr/include/c++/4.6/ext/atomicity.h:34:
In file included from include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/gthr.h:162:
include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/gthr-default.h:790:17: warning: implicit declaration of function ‘pthread_mutexattr_settype’ is invalid in C99
__r = _gthrw(pthread_mutexattr_settype) (&__attr,
^
include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/gthr-default.h:78:25: note: expanded from:

define _gthrw(name) name

                    ^

include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/gthr-default.h:791:10: error: use of undeclared identifier ‘PTHREAD_MUTEX_RECURSIVE’; did you mean ‘PTHREAD_MUTEX_RECURSIVE_NP’?
PTHREAD_MUTEX_RECURSIVE);
^~~~~~~~~~~~~~~~~~~~~~~
PTHREAD_MUTEX_RECURSIVE_NP
/usr/include/pthread.h:49:3: note: ‘PTHREAD_MUTEX_RECURSIVE_NP’ declared here
PTHREAD_MUTEX_RECURSIVE_NP,
^
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:37:
In file included from include/linux/usr/include/c++/4.6/string:53:
In file included from include/linux/usr/include/c++/4.6/bits/basic_string.h:40:
include/linux/usr/include/c++/4.6/ext/atomicity.h:37:1: error: unknown type name ‘namespace’
namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
^
include/linux/usr/include/c++/4.6/ext/atomicity.h:37:49: error: expected ‘;’ after top level declarator
namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
^
;
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:40:
In file included from include/SFML/include/SFML/Audio.hpp:32:
In file included from include/SFML/include/SFML/System.hpp:34:
In file included from include/SFML/include/SFML/System/Err.hpp:32:
In file included from include/linux/usr/include/c++/4.6/ostream:39:
In file included from include/linux/usr/include/c++/4.6/ios:44:
In file included from include/linux/usr/include/c++/4.6/bits/basic_ios.h:38:
In file included from include/linux/usr/include/c++/4.6/bits/locale_facets.h:40:
In file included from include/linux/usr/include/c++/4.6/cwctype:51:
/usr/include/wctype.h:172:8: error: unknown type name ‘wctype_t’
extern wctype_t wctype (__const char *__property) __THROW;
^
/usr/include/wctype.h:176:35: error: unknown type name ‘wctype_t’
extern int iswctype (wint_t __wc, wctype_t __desc) __THROW;
^
/usr/include/wctype.h:285:8: error: unknown type name ‘wctype_t’
extern wctype_t wctype_l (__const char *__property, __locale_t __locale)
^
/usr/include/wctype.h:290:37: error: unknown type name ‘wctype_t’
extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale)
^
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:40:
In file included from include/SFML/include/SFML/Audio.hpp:32:
In file included from include/SFML/include/SFML/System.hpp:34:
In file included from include/SFML/include/SFML/System/Err.hpp:32:
In file included from include/linux/usr/include/c++/4.6/ostream:39:
In file included from include/linux/usr/include/c++/4.6/ios:44:
In file included from include/linux/usr/include/c++/4.6/bits/basic_ios.h:38:
In file included from include/linux/usr/include/c++/4.6/bits/locale_facets.h:40:
include/linux/usr/include/c++/4.6/cwctype:81:1: error: unknown type name ‘namespace’
namespace std
^
include/linux/usr/include/c++/4.6/cwctype:81:14: error: expected ‘;’ after top level declarator
namespace std
^
;
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:40:
In file included from include/SFML/include/SFML/Audio.hpp:32:
In file included from include/SFML/include/SFML/System.hpp:39:
In file included from include/SFML/include/SFML/System/String.hpp:32:
In file included from include/linux/usr/include/c++/4.6/locale:42:
In file included from include/linux/usr/include/c++/4.6/bits/locale_facets_nonio.h:1930:
include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/messages_members.h:39:1: error: unknown type name ‘namespace’
namespace std _GLIBCXX_VISIBILITY(default)
^
include/linux/usr/include/c++/4.6/i686-linux-gnu/bits/messages_members.h:39:43: error: expected ‘;’ after top level declarator
namespace std _GLIBCXX_VISIBILITY(default)
^
;
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:40:
In file included from include/SFML/include/SFML/Audio.hpp:32:
In file included from include/SFML/include/SFML/System.hpp:40:
In file included from include/SFML/include/SFML/System/Thread.hpp:33:
In file included from include/linux/usr/include/c++/4.6/cstdlib:65:
In file included from /usr/include/stdlib.h:320:
include/linux/usr/include/i386-linux-gnu/sys/types.h:34:9: error: unknown type name ‘__u_char’
typedef __u_char u_char;
^
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:40:
In file included from include/SFML/include/SFML/Audio.hpp:32:
In file included from include/SFML/include/SFML/System.hpp:40:
In file included from include/SFML/include/SFML/System/Thread.hpp:33:
In file included from include/linux/usr/include/c++/4.6/cstdlib:65:
/usr/include/stdlib.h:780:8: error: unknown type name ‘div_t’
extern div_t div (int __numer, int __denom)
^
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
In file included from /mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:40:
In file included from include/SFML/include/SFML/Audio.hpp:32:
In file included from include/SFML/include/SFML/System.hpp:40:
In file included from include/SFML/include/SFML/System/Thread.hpp:33:
include/linux/usr/include/c++/4.6/cstdlib:97:1: error: unknown type name ‘namespace’
namespace std _GLIBCXX_VISIBILITY(default)
^
include/linux/usr/include/c++/4.6/cstdlib:97:43: error: expected ‘;’ after top level declarator
namespace std _GLIBCXX_VISIBILITY(default)
^
;
In file included from /mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:1:
/mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:56:1: error: unknown type name ‘namespace’
namespace sfMod
^
/mnt/temp/gdevelop/release/sfmod_test/include/sfMod.h:56:16: error: expected ‘;’ after top level declarator
namespace sfMod
^
;
/mnt/temp/gdevelop/release/sfmod_test/moduleplay.h:3:17: error: unknown type name ‘string’
void playModule(string filename);
^[/code]

Anyone can help me?