File: compile.sh

package info (click to toggle)
fuzzylite 6.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,420 kB
  • sloc: cpp: 25,880; java: 1,370; sh: 85; xml: 12; makefile: 10
file content (25 lines) | stat: -rwxr-xr-x 828 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

FL_HOME="../../fuzzylite/"

#Static Linking
#--------------
#For C++11
g++ src/main.cpp -oexample-static-11 -I$FL_HOME -L$FL_HOME/release/bin -lfuzzylite-static -std=c++11

#For C++98
g++ src/main.cpp -oexample-static-98 -I$FL_HOME -L$FL_HOME/release/bin -lfuzzylite-static -DFL_CPP98=ON -Wno-non-literal-null-conversion


#Dynamic Linking
#---------------
#For C++11
g++ src/main.cpp -oexample-dynamic-11 -I$FL_HOME -L$FL_HOME/release/bin -lfuzzylite -std=c++11

#For C++98
g++ src/main.cpp -oexample-dynamic-98 -I$FL_HOME -L$FL_HOME/release/bin -lfuzzylite -DFL_CPP98=ON -Wno-non-literal-null-conversion

#Note: when using dynamic linking, the path to fuzzylite libraries must be specified. For example, run from console the following:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FL_HOME/release/bin;
./example-dynamic-11