summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2014-06-09 21:39:24 +0400
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2014-06-09 21:39:24 +0400
commitbe2c5cc297eda50f94c3dc7946d8847d75135864 (patch)
tree00c7f27e79d961ae3523303987d213e60076fb01
parentea6ef46978a7ebf5fc84a5f34592ac874d2647b4 (diff)
upstream compilation fix
-rw-r--r--sound_detector/Makefile9
-rw-r--r--sound_detector/main.cpp2
2 files changed, 10 insertions, 1 deletions
diff --git a/sound_detector/Makefile b/sound_detector/Makefile
new file mode 100644
index 0000000..c38b514
--- /dev/null
+++ b/sound_detector/Makefile
@@ -0,0 +1,9 @@
+all:
+ g++ -c main.cpp -std=gnu++11 -o main.o
+ g++ -o sound_detector main.o -lboost_system -lboost_date_time -lboost_thread -lboost_random-mt -lboost_filesystem -lportaudio -lvorbis -lvorbisenc -logg -Wl,-O1 -s
+clean:
+ rm *.o
+
+clean-all:
+ rm *.o sound_detector
+
diff --git a/sound_detector/main.cpp b/sound_detector/main.cpp
index ca8b804..1385eea 100644
--- a/sound_detector/main.cpp
+++ b/sound_detector/main.cpp
@@ -32,7 +32,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <complex.h>
+//#include <complex.h>
//c++
#include <limits>