Declare them "extern" in include files.
Found by compiling with "-fno-common".
#include <stdarg.h>
-xbt_dict_t process_function_set;
-xbt_dynar_t process_list;
-xbt_dict_t machine_set;
+extern xbt_dict_t process_function_set;
+extern xbt_dynar_t process_list;
+extern xbt_dict_t machine_set;
typedef struct s_process_t {
int argc;
#include "xbt/dynar.h"
#include "xbt/dict.h"
-xbt_dict_t process_function_set;
-xbt_dynar_t process_list;
-xbt_dict_t machine_set;
+extern xbt_dict_t process_function_set;
+extern xbt_dynar_t process_list;
+extern xbt_dict_t machine_set;
+extern char *warning;
typedef struct s_process_t {
int argc;
char **argv;
char *host;
} s_process_t;
-char *warning;
void s_process_free(void *process);
xbt_dict_t process_function_set = NULL;
xbt_dynar_t process_list = NULL;
xbt_dict_t machine_set = NULL;
+char *warning = NULL;
void s_process_free(void *process)
{
#define MAKEFILE_FILENAME_REMOTE "%s.Makefile.remote"
#define DEPLOYMENT "%s.deploy.sh"
-char *warning = NULL;
-
/**********************************************/
/**** Generate the file for the simulator *****/
/**********************************************/