summaryrefslogtreecommitdiff
path: root/examples/application/compile.sh
blob: 1ea1aa4be1290a4c4856ab7e9847c8b6d889d976 (plain)
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