diff options
Diffstat (limited to 'examples/application/compile.sh')
-rwxr-xr-x | examples/application/compile.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/application/compile.sh b/examples/application/compile.sh new file mode 100755 index 0000000..1ea1aa4 --- /dev/null +++ b/examples/application/compile.sh @@ -0,0 +1,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 |