Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make Hello World example works with mingw
authorunknown <pierre@.(none)>
Tue, 10 Jan 2012 21:37:49 +0000 (22:37 +0100)
committerunknown <pierre@.(none)>
Tue, 10 Jan 2012 21:37:49 +0000 (22:37 +0100)
doc/HelloWorld/CMakeLists.txt
doc/HelloWorld/HelloWorld.c

index 52afb5b..d93fa60 100644 (file)
@@ -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})
index 796b67a..1399ea9 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "xbt/log.h"
 XBT_LOG_NEW_DEFAULT_CATEGORY(HelloWorld,
                              "Messages specific for this Hello World example");