Skip to content

Commit

Permalink
Fix compilation of WDS
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Nov 28, 2023
1 parent 01fa9aa commit 5fe624a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion native/WDS/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CC = gcc
SRC_DIR = src
SOURCE = $(SRC_DIR)/main.c $(SRC_DIR)/models.c $(SRC_DIR)/moeaframework.c
C_FLAGS = -I$(SRC_DIR)/epanet2 -Lbin -lepanet2 -Wl,-R,\.
C_FLAGS = -I$(SRC_DIR)/epanet2 -Lbin -lm -lepanet2 -Wl,-R,\.

all:
$(MAKE) -C $(SRC_DIR)/epanet2
Expand Down
8 changes: 4 additions & 4 deletions native/WDS/src/models.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
int nvars;
int nobjs;
int nconstrs;
char* inputFile;
extern int nvars;
extern int nobjs;
extern int nconstrs;
extern char* inputFile;
void test_problem (double *xreal, double *xbin, int **gene, double *obj, double *constr);

0 comments on commit 5fe624a

Please sign in to comment.