Browse Source

Changed build to work with both gcc and clang.

pull/3/head
Lewis Van Winkle 3 years ago
parent
commit
064703e332
3 changed files with 7 additions and 3 deletions
  1. 5
    0
      .travis.yml
  2. 1
    2
      Makefile
  3. 1
    1
      example3.c

+ 5
- 0
.travis.yml View File

@@ -1,2 +1,7 @@
language: c

compiler:
- clang
- gcc

script: make

+ 1
- 2
Makefile View File

@@ -1,5 +1,4 @@
CC = gcc
CCFLAGS = -ansi -Wall -Wshadow -O2 -g
CCFLAGS = -Wall -Wshadow -O2 -g
LFLAGS = -lm



+ 1
- 1
example3.c View File

@@ -20,7 +20,7 @@ int main(int argc, char *argv[])
fclose(saved);

if (!ann) {
printf("Error loading ANN from file.", save_name);
printf("Error loading ANN from file: %s.", save_name);
exit(1);
}


Loading…
Cancel
Save