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

Author Topic: [SOLVED] Problems compiling on Arch Linux  (Read 6885 times)

0 Members and 1 Guest are viewing this topic.

tjko

  • Newbie
  • *
  • Posts: 4
    • View Profile
[SOLVED] Problems compiling on Arch Linux
« on: March 29, 2012, 10:37:56 pm »
Hi there,

I installed SFML from the Arch Linux community repository (which I'm pretty sure just pulls from the HEAD of the repo on Github):

Code: [Select]
community/sfml 1.99.git20120312-1 [installed]
    A simple, fast, cross-platform, and object-oriented multimedia API

And I have the proper shared object files:

Code: [Select]
▕ lrwxrwxrwx▏3  hour│  18B│libsfml-audio.so => libsfml-audio.so.2
▕ lrwxrwxrwx▏3  hour│  20B│libsfml-audio.so.2 => libsfml-audio.so.2.0
▕ -rwxr-xr-x▏3  hour│  64K│libsfml-audio.so.2.0
▕ lrwxrwxrwx▏3  hour│  21B│libsfml-graphics.so => libsfml-graphics.so.2
▕ lrwxrwxrwx▏3  hour│  23B│libsfml-graphics.so.2 => libsfml-graphics.so.2.0
▕ -rwxr-xr-x▏3  hour│ 589K│libsfml-graphics.so.2.0
▕ lrwxrwxrwx▏3  hour│  20B│libsfml-network.so => libsfml-network.so.2
▕ lrwxrwxrwx▏3  hour│  22B│libsfml-network.so.2 => libsfml-network.so.2.0
▕ -rwxr-xr-x▏3  hour│ 108K│libsfml-network.so.2.0
▕ lrwxrwxrwx▏3  hour│  19B│libsfml-system.so => libsfml-system.so.2
▕ lrwxrwxrwx▏3  hour│  21B│libsfml-system.so.2 => libsfml-system.so.2.0
▕ -rwxr-xr-x▏3  hour│  39K│libsfml-system.so.2.0
▕ lrwxrwxrwx▏3  hour│  19B│libsfml-window.so => libsfml-window.so.2
▕ lrwxrwxrwx▏3  hour│  21B│libsfml-window.so.2 => libsfml-window.so.2.0
▕ -rwxr-xr-x▏3  hour│  80K│libsfml-window.so.2.0

But when I try to compile a simple example (without linking):

Code: [Select]
[~/workspace/zombeh/src]$ g++ main.cpp                                                                                                                                                                                          []
/tmp/ccAzHcgf.o: In function `main':
main.cpp:(.text+0x6c): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
main.cpp:(.text+0x93): undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::WindowSettings const&)'
main.cpp:(.text+0xbf): undefined reference to `sf::RenderWindow::~RenderWindow()'
main.cpp:(.text+0xf3): undefined reference to `sf::RenderWindow::~RenderWindow()'
collect2: ld returned 1 exit status

And with linking:

Code: [Select]
[~/workspace/zombeh/src]$ g++ main.cpp -lsfml-graphics -lsfml-window -lsfml-system
/tmp/cckWyWRM.o: In function `main':
main.cpp:(.text+0x93): undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::WindowSettings const&)'
collect2: ld returned 1 exit status

Which leads me to believe the linking and installation is working fine but I'm confused what's wrong.

I checked the source from the git repository pointed to in the PKGBUILD and it looks like I'm using the API properly (and in accordance with the documentation on the site).

Anyone use SFML and could lend me a hand, please?
Thanks for any help!
« Last Edit: March 30, 2012, 07:08:53 am by tjko »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problems compiling on Arch Linux
« Reply #1 on: March 29, 2012, 10:44:43 pm »
You're using headers from SFML 1.6 and libraries from 2.0 ;)
Laurent Gomila - SFML developer

tjko

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problems compiling on Arch Linux
« Reply #2 on: March 30, 2012, 06:01:50 am »
Thanks for the speedy reply (I was on a plane so couldn't follow up sooner).

So I compared the header files on git and the ones in the Arch Linux community package manifest at the following link: http://www.archlinux.org/packages/community/x86_64/sfml/.

Although this package was updated less than a month ago, I'm guessing it's broken.

Please let me know if I'm totally misinterpreting something, otherwise I'll try and fix the package or determine my mistake and get back to this soon to mark it as solved.

EDIT: Nevermind all I said -- the header files I have installed seem right. I guess RenderWindow is now Window?

EDIT #2: Nevermind what I said above -- RenderWindow is under Graphics/... I guess I'm just stumped what my problem is. I'll keep digging.
« Last Edit: March 30, 2012, 06:27:06 am by tjko »

tjko

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problems compiling on Arch Linux
« Reply #3 on: March 30, 2012, 06:57:34 am »
Okay, here's more info. You are definitely right -- I just don't get why.

Here sf::Style::Default is not found:
Code: [Select]
main.cpp:19:51: error: ‘Default’ is not a member of ‘sf::Style’
So I guess my issue is how come the proper file is not included as the header?

Code: [Select]
[~/workspace/zombeh/src]$ `gcc -print-prog-name=cc1plus` -v
ignoring nonexistent directory "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include
 /usr/local/include
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed
 /usr/include
End of search list.
^C

Because sf::Style::Default is defined in /usr/include/SFML/Window/WindowStyle.hpp:
Code: [Select]
[~/workspace/zombeh/src]$ cat /usr/include/SFML/Window/WindowStyle.hpp                                       []
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2012 Laurent Gomila (laurent.gom@gmail.com)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented;
//    you must not claim that you wrote the original software.
//    If you use this software in a product, an acknowledgment
//    in the product documentation would be appreciated but is not required.
//
// 2. Altered source versions must be plainly marked as such,
//    and must not be misrepresented as being the original software.
//
// 3. This notice may not be removed or altered from any source distribution.
//
////////////////////////////////////////////////////////////

#ifndef SFML_WINDOWSTYLE_HPP
#define SFML_WINDOWSTYLE_HPP


namespace sf
{
namespace Style
{
    ////////////////////////////////////////////////////////////
    /// \ingroup window
    /// \brief Enumeration of the window styles
    ///
    ////////////////////////////////////////////////////////////
    enum
    {
        None       = 0,      ///< No border / title bar (this flag and all others are mutually exclusive)
        Titlebar   = 1 << 0, ///< Title bar + fixed border
        Resize     = 1 << 1, ///< Titlebar + resizable border + maximize button
        Close      = 1 << 2, ///< Titlebar + close button
        Fullscreen = 1 << 3, ///< Fullscreen mode (this flag and all others are mutually exclusive)

        Default = Titlebar | Resize | Close ///< Default window style
    };
}

} // namespace sf


#endif // SFML_WINDOWSTYLE_HPP

tjko

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problems compiling on Arch Linux
« Reply #4 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!

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!
« Last Edit: March 30, 2012, 07:09:20 am by tjko »

 

anything