From: unknown Date: Tue, 10 Jan 2012 21:37:49 +0000 (+0100) Subject: Make Hello World example works with mingw X-Git-Tag: exp_20120216~154 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0053bacb6660743f437919503cb9cd376de9bea7?ds=inline Make Hello World example works with mingw --- diff --git a/doc/HelloWorld/CMakeLists.txt b/doc/HelloWorld/CMakeLists.txt index 52afb5bbd9..d93fa60d6d 100644 --- a/doc/HelloWorld/CMakeLists.txt +++ b/doc/HelloWorld/CMakeLists.txt @@ -42,5 +42,5 @@ foreach(target "${TARGET_NAME}") message(STATUS "source_file: ${target}.c") message(STATUS "target name: ${target}.exe") # Any targets need to be linked with simgrid and pcre - target_link_libraries(${target} simgrid pcre) + target_link_libraries(${target} simgrid pcre pthread) endforeach(target ${SOURCE_FILE}) diff --git a/doc/HelloWorld/HelloWorld.c b/doc/HelloWorld/HelloWorld.c index 796b67a95e..1399ea9265 100644 --- a/doc/HelloWorld/HelloWorld.c +++ b/doc/HelloWorld/HelloWorld.c @@ -1,3 +1,4 @@ +#include #include "xbt/log.h" XBT_LOG_NEW_DEFAULT_CATEGORY(HelloWorld, "Messages specific for this Hello World example");