1
General / Re: Problems compiling on Arch Linux
« on: March 30, 2012, 07:07:19 am »
Aha! More digging...
Should have noticed /usr/local/include was being searched first and older SFML headers were found in there!
Thanks so much for your help!
Should have noticed /usr/local/include was being searched first and older SFML headers were found in there!
Code: [Select]
[~/workspace/zombeh/src]$ g++ -H main.cpp
. /usr/include/assert.h
.. /usr/include/features.h
... /usr/include/sys/cdefs.h
.... /usr/include/bits/wordsize.h
... /usr/include/gnu/stubs.h
.... /usr/include/bits/wordsize.h
.... /usr/include/gnu/stubs-64.h
. /usr/local/include/SFML/Window.hpp
.. /usr/local/include/SFML/System.hpp
... /usr/local/include/SFML/Config.hpp
.... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/climits
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed/limits.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed/syslimits.h
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed/limits.h
........ /usr/include/limits.h
......... /usr/include/bits/posix1_lim.h
.......... /usr/include/bits/local_lim.h
........... /usr/include/linux/limits.h
......... /usr/include/bits/posix2_lim.h
......... /usr/include/bits/xopen_lim.h
.......... /usr/include/bits/stdio_lim.h
... /usr/local/include/SFML/System/Clock.hpp
... /usr/local/include/SFML/System/Lock.hpp
.... /usr/local/include/SFML/System/NonCopyable.hpp
... /usr/local/include/SFML/System/Mutex.hpp
.... /usr/local/include/SFML/System/Unix/Mutex.hpp
..... /usr/include/pthread.h
...... /usr/include/endian.h
....... /usr/include/bits/endian.h
....... /usr/include/bits/byteswap.h
........ /usr/include/bits/wordsize.h
...... /usr/include/sched.h
....... /usr/include/bits/types.h
........ /usr/include/bits/wordsize.h
........ /usr/include/bits/typesizes.h
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
....... /usr/include/time.h
....... /usr/include/bits/sched.h
...... /usr/include/time.h
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
....... /usr/include/bits/time.h
........ /usr/include/bits/timex.h
....... /usr/include/xlocale.h
...... /usr/include/bits/pthreadtypes.h
....... /usr/include/bits/wordsize.h
...... /usr/include/bits/setjmp.h
....... /usr/include/bits/wordsize.h
...... /usr/include/bits/wordsize.h
... /usr/local/include/SFML/System/Randomizer.hpp
... /usr/local/include/SFML/System/Sleep.hpp
... /usr/local/include/SFML/System/Thread.hpp
.... /usr/local/include/SFML/System/Unix/Thread.hpp
... /usr/local/include/SFML/System/Unicode.hpp
.... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iterator
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++config.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/os_defines.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_types.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator_base_funcs.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/concept_check.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_iterator.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cpp_type_traits.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/type_traits.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/move.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iosfwd
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stringfwd.h
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/postypes.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar
.......... /usr/include/wchar.h
........... /usr/include/stdio.h
........... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stdarg.h
........... /usr/include/bits/wchar.h
........... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/exception
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/char_traits.h
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_algobase.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/functexcept.h
.......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/exception_defines.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/numeric_traits.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_pair.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/debug/debug.h
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwchar
......... /usr/include/wchar.h
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/localefwd.h
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++locale.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/clocale
.......... /usr/include/locale.h
........... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
........... /usr/include/bits/locale.h
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype
......... /usr/include/ctype.h
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ios_base.h
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/atomicity.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr.h
.......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/gthr-default.h
........... /usr/include/unistd.h
............ /usr/include/bits/posix_opt.h
............ /usr/include/bits/environments.h
............. /usr/include/bits/wordsize.h
............ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
............ /usr/include/bits/confname.h
............ /usr/include/getopt.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/atomic_word.h
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/string
.......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/allocator.h
........... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++allocator.h
............ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ext/new_allocator.h
............. /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/new
.......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream_insert.h
........... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/cxxabi_forced.h
.......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_function.h
........... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward/binders.h
.......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/range_access.h
.......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h
........... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/initializer_list
.......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.tcc
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_classes.tcc
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/streambuf
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf.tcc
....... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.h
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwctype
.......... /usr/include/wctype.h
........... /usr/include/wchar.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cctype
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/ctype_base.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/streambuf_iterator.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h
......... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets.tcc
........ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/basic_ios.tcc
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/ostream.tcc
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/istream
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/istream.tcc
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stream_iterator.h
.... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/locale
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets_nonio.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ctime
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/time_members.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/messages_members.h
....... /usr/include/libintl.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/codecvt.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/locale_facets_nonio.tcc
.... /usr/include/stdlib.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
..... /usr/include/bits/waitflags.h
..... /usr/include/bits/waitstatus.h
..... /usr/include/sys/types.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
...... /usr/include/sys/select.h
....... /usr/include/bits/select.h
........ /usr/include/bits/wordsize.h
....... /usr/include/bits/sigset.h
....... /usr/include/bits/time.h
...... /usr/include/sys/sysmacros.h
..... /usr/include/alloca.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
.... /usr/local/include/SFML/System/Unicode.inl
... /usr/local/include/SFML/System/Vector2.hpp
.... /usr/local/include/SFML/System/Vector2.inl
... /usr/local/include/SFML/System/Vector3.hpp
.... /usr/local/include/SFML/System/Vector3.inl
.. /usr/local/include/SFML/Window/Context.hpp
.. /usr/local/include/SFML/Window/Event.hpp
.. /usr/local/include/SFML/Window/Input.hpp
... /usr/local/include/SFML/Window/WindowListener.hpp
.. /usr/local/include/SFML/Window/VideoMode.hpp
... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cstdlib
.. /usr/local/include/SFML/Window/Window.hpp
... /usr/local/include/SFML/Window/WindowHandle.hpp
... /usr/local/include/SFML/Window/WindowSettings.hpp
... /usr/local/include/SFML/Window/WindowStyle.hpp
... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/queue
.... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/deque
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_construct.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_uninitialized.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_deque.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/deque.tcc
.... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/vector
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_vector.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_bvector.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/vector.tcc
.... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_heap.h
.... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/stl_queue.h
.. /usr/local/include/SFML/Window/OpenGL.hpp
... /usr/include/GL/gl.h
.... /usr/include/GL/glext.h
..... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stddef.h
..... /usr/include/inttypes.h
...... /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include/stdint.h
....... /usr/include/stdint.h
........ /usr/include/bits/wordsize.h
... /usr/include/GL/glu.h
. /usr/include/SFML/OpenGL.hpp
main.cpp: In function ‘int main(int, char**)’:
main.cpp:11:3: error: ‘class sf::VideoMode’ has no member named ‘isValid’
main.cpp:14:40: error: ‘Default’ is not a member of ‘sf::Style’
main.cpp:14:60: error: ‘ContextSettings’ is not a member of ‘sf’
main.cpp
Multiple include guards may be useful for:
/usr/include/assert.h
/usr/include/bits/byteswap.h
/usr/include/bits/confname.h
/usr/include/bits/endian.h
/usr/include/bits/environments.h
/usr/include/bits/local_lim.h
/usr/include/bits/locale.h
/usr/include/bits/sched.h
/usr/include/bits/select.h
/usr/include/bits/sigset.h
/usr/include/bits/stdio_lim.h
/usr/include/bits/typesizes.h
/usr/include/bits/waitflags.h
/usr/include/bits/waitstatus.h
/usr/include/gnu/stubs-64.h
/usr/include/gnu/stubs.h
/usr/include/limits.h
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/climits
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/clocale
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cstdlib
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ctime
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cwctype
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/ctype_base.h
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/messages_members.h
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/time_members.h
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed/syslimits.h
/usr/local/include/SFML/System/Unicode.inl
/usr/local/include/SFML/System/Vector2.inl
/usr/local/include/SFML/System/Vector3.inl
Thanks so much for your help!