Skip to content

Instantly share code, notes, and snippets.

@jpleau
Created December 28, 2013 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpleau/8162839 to your computer and use it in GitHub Desktop.
Save jpleau/8162839 to your computer and use it in GitHub Desktop.
g++ -c -Iinclude/ -std=c++11 -lsfml-network -lsfml-graphics -lsfml-window -lsfml-system -lX11 -o obj/game.o src/game.cpp
In file included from include/standard_cursor.h:11:0,
from include/game_window.h:6,
from src/game.cpp:2:
/usr/include/SFML/Network/Socket.hpp:53:10: error: expected identifier before ‘int’
enum Status
^
In file included from /usr/include/SFML/Network/TcpSocket.hpp:32:0,
from /usr/include/SFML/Network/Ftp.hpp:32,
from /usr/include/SFML/Network.hpp:33,
from include/game_server.h:6,
from src/game.cpp:5:
/usr/include/SFML/Network/Socket.hpp:54:5: error: expected unqualified-id before ‘{’ token
{
^
In file included from include/standard_cursor.h:11:0,
from include/game_window.h:6,
from src/game.cpp:2:
/usr/include/SFML/Network/Ftp.hpp:74:14: error: expected identifier before ‘int’
enum Status
^
In file included from /usr/include/SFML/Network.hpp:33:0,
from include/game_server.h:6,
from src/game.cpp:5:
/usr/include/SFML/Network/Ftp.hpp:75:9: error: expected unqualified-id before ‘{’ token
{
^
In file included from /usr/include/SFML/Network.hpp:33:0,
from include/game_server.h:6,
from src/game.cpp:5:
/usr/include/SFML/Network/Ftp.hpp:146:41: error: ‘InvalidResponse’ was not declared in this scope
explicit Response(Status code = InvalidResponse, const std::string& message = "");
^
In file included from /usr/include/X11/Xlib.h:44:0,
from include/standard_cursor.h:11,
from include/game_window.h:6,
from src/game.cpp:2:
/usr/include/SFML/Network/IpAddress.hpp:184:28: error: expected unqualified-id before numeric constant
static const IpAddress None; ///< Value representing an empty/invalid address
^
In file included from include/standard_cursor.h:11:0,
from include/game_window.h:6,
from src/game.cpp:2:
/usr/include/SFML/Network/Http.hpp:199:14: error: expected identifier before ‘int’
enum Status
^
In file included from /usr/include/SFML/Network.hpp:34:0,
from include/game_server.h:6,
from src/game.cpp:5:
/usr/include/SFML/Network/Http.hpp:200:9: error: expected unqualified-id before ‘{’ token
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment