Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created July 5, 2012 23:54
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 anonymous/3057200 to your computer and use it in GitHub Desktop.
Save anonymous/3057200 to your computer and use it in GitHub Desktop.
xcut
g++ -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Werror=return-type IMG_savepng.o achievements.o animation_creator.o animation_preview_widget.o animation_widget.o asserts.o background.o base64.o blur.o border_widget.o button.o character_editor_dialog.o checkbox.o checksum.o code_editor_dialog.o code_editor_widget.o color_chart.o compress.o current_generator.o decimal.o drag_widget.o dropdown_widget.o editor_dialogs.o editor_formula_functions.o editor_layers_dialog.o editor_stats_dialog.o editor_variable_info.o external_text_editor.o clipboard.o collision_utils.o color_utils.o controls.o controls_dialog.o custom_object.o custom_object_callable.o custom_object_dialog.o custom_object_functions.o custom_object_type.o debug_console.o dialog.o draw_number.o draw_scene.o draw_tile.o editor.o editor_level_properties_dialog.o editor_module_properties_dialog.o entity.o file_chooser_dialog.o filesystem.o font.o formula.o formula_callable_definition.o formula_constants.o formula_function.o formula_function_registry.o formula_profiler.o formula_tokenizer.o formula_variable_storage.o frame.o framed_gui_element.o game_registry.o geometry.o globals.o graphical_font.o graphical_font_label.o grid_widget.o group_property_editor_dialog.o gui_formula_functions.o gui_section.o i18n.o image_widget.o input.o iphone_controls.o joystick.o json_parser.o json_tokenizer.o key.o key_button.o label.o level.o level_logic.o level_object.o level_runner.o level_solid_map.o light.o load_level_nothread.o main.o md5.o message_dialog.o module.o movement_script.o multi_tile_pattern.o multiplayer.o object_events.o options_dialog.o particle_system.o pathfinding.o pause_game_dialog.o playable_custom_object.o player_info.o preferences.o preprocessor.o preview_tileset_widget.o property_editor_dialog.o random.o raster.o raster_distortion.o rectangle_rotator.o scrollbar_widget.o scrollable_widget.o segment_editor_dialog.o settings_dialog.o slider.o solid_map.o sound.o speech_dialog.o stats.o stats_server.o stats_server_main.o stats_web_server.o string_utils.o surface_cache.o surface_formula.o surface_palette.o surface_scaling.o surface.o tbs_ai_player.o tbs_client.o tbs_functions.o tbs_game.o tbs_server.o tbs_web_server.o texture.o texture_frame_buffer.o text_editor_widget.o thread.o tile_map.o tileset_editor_dialog.o tooltip.o translate.o tree_view_widget.o utils.o variant.o variant_callable.o variant_utils.o water.o water_particle_system.o weather_particle_system.o widget.o widget_factory.o wml_formula_callable.o unit_test.o formula_test.o loading_screen.o utility_object_compiler.o utility_query.o utility_render_level.o vector_text.o -o game -L. -L/sw/lib -L. -L/usr/lib `sdl-config --libs` -lSDLmain -lSDL -lGL -lGLU -lGLEW -lSDL_image -lSDL_ttf -lSDL_mixer -lpng -lboost_regex -lboost_system -lpthread -g -O2 -lX11 -lz -fno-inline-functions -fthreadsafe-statics
g++ -DIMPLEMENT_SAVE_PNG -fno-inline-functions `sdl-config --cflags` -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Werror=return-type -fthreadsafe-statics -g -O2 -lX11 -lz -fno-inline-functions -c src/server.cpp
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/include/boost/thread.hpp:13,
from src/server.cpp:8:
/usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
/usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
/usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
/usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/include/boost/thread.hpp:13,
from src/server.cpp:8:
/usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
/usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
/usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative:
In file included from /usr/include/boost/thread/locks.hpp:12:0,
from /usr/include/boost/thread/pthread/mutex.hpp:12,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/include/boost/thread.hpp:13,
from src/server.cpp:8:
/usr/include/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/include/boost/thread.hpp:13,
from src/server.cpp:8:
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
make: *** [server.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment