Skip to content

Instantly share code, notes, and snippets.

@MarSoft
Created November 8, 2015 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarSoft/e04b950436c8d6637713 to your computer and use it in GitHub Desktop.
Save MarSoft/e04b950436c8d6637713 to your computer and use it in GitHub Desktop.
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIC -DNOMINMAX -DQT_NO_DEBUG -DQT_CORE_LIB -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ocr_test.o ocr_test/ocr_test.cpp
In file included from ocr_test/OcrMatchProcessor.h:12:0,
from ocr_test/ocr_test.cpp:16:
ocr_test/ImgParser.h:79:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif _H_IMG_PARSER
^
In file included from ocr_test/ocr_test.cpp:16:0:
ocr_test/OcrMatchProcessor.h:23:48: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
OcrMatchInfo(std::string& lTeam = std::string(), std::string& rTeam = std::string(), int lScore = 0, int rScore = 0, int time = 0) : leftTeam(lTeam), rightTeam(rTeam), leftScore(lScore), rightScore(rScore), time(time) {}
^
ocr_test/OcrMatchProcessor.h:23:84: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
OcrMatchInfo(std::string& lTeam = std::string(), std::string& rTeam = std::string(), int lScore = 0, int rScore = 0, int time = 0) : leftTeam(lTeam), rightTeam(rTeam), leftScore(lScore), rightScore(rScore), time(time) {}
^
ocr_test/ocr_test.cpp:45:19: warning: unused parameter 'argc' [-Wunused-parameter]
int test_main(int argc, char *argv[])
^
ocr_test/ocr_test.cpp:45:36: warning: unused parameter 'argv' [-Wunused-parameter]
int test_main(int argc, char *argv[])
^
ocr_test/ocr_test.cpp: In function 'void test_superRes(const string&, int)':
ocr_test/ocr_test.cpp:432:9: warning: unused variable 'lastDebugInfoSize' [-Wunused-variable]
int lastDebugInfoSize = 0;
^
ocr_test/ocr_test.cpp: At global scope:
ocr_test/ocr_test.cpp:532:39: warning: unused parameter 'imgFilename' [-Wunused-parameter]
void test_templateMatch(const string& imgFilename, const string& templateFilename)
^
ocr_test/ocr_test.cpp:532:66: warning: unused parameter 'templateFilename' [-Wunused-parameter]
void test_templateMatch(const string& imgFilename, const string& templateFilename)
^
Makefile:613: recipe for target 'ocr_test.o' failed
make: *** [ocr_test.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment