Welcome to the Linux Foundation Forum!

linux make file

Hello everyone.

I am new to creating make files. I have been able to create simple makefiles for those applications which do not involve database but am unable to create for the ones that do involve database. When I run that make file, it just deletes the .exe file of that application from the folder. Could anyone please help me with this.

That's how my make file looks

INCLUDES = -I/usr/include/mysql++ -I/usr/include/mysql
LIBRARY = -L/usr/lib64/ -L/usr/lib64/mysql -lmysqlpp
SOURCE = /usr/local/babbage/bin/BreachCheck

VPATH = $(INCLUDES) $(LIBRARY) $(SOURCE)

OBJS = breachtester.o breachwriter.o cherrypicker.o datecl.o formatter.o frontrunner.o liffeconnect.o \
liffe_runbreach.o logger.o positionmonitor.o reportwriter.o

CC = g++

DEBUG = -g

CFLAGS = -Wall -c $(DEBUG)

LFLAGS = -Wall $(DEBUG)

liffe_runbreach-64bit : $(OBJS)
$(CC) $(LFLAGS) $(OBJS) -o liffe_runbreach-64bit

breachtester.o : breachtester.h breachtester.cpp breachwriter.h logger.h formatter.h \
datecl.h liffeconnect.h
$(CC) $(INCLUDES) $(CFLAGS) breachtester.cpp

breachwriter.o : breachwriter.h breachwriter.cpp breachtester.h liffeconnect.h
$(CC) $(INCLUDES) $(CFLAGS) breachwriter.cpp

cherrypicker.o : cherrypicker.h cherrypicker.cpp reportwriter.h
$(CC) $(INCLUDES) $(CFLAGS) cherrypicker.cpp

datecl.o : datecl.h datecl.cpp
$(CC) $(CFLAGS) datecl.cpp

formatter.o : formatter.h formatter.cpp
$(CC) $(CFLAGS) formatter.cpp

frontrunner.o : frontrunner.h frontrunner.cpp liffeconnect.h reportwriter.h
$(CC) $(INCLUDES) $(CFLAGS) frontrunner.cpp

liffeconnect.o : liffeconnect.h liffeconnect.cpp logger.h formatter.h breachtester.h
$(CC) $(INCLUDES) $(CFLAGS) liffeconnect.cpp

logger.o : logger.h logger.cpp
$(CC) $(CFLAGS) logger.cpp

positionmonitor.o : positionmonitor.h positionmonitor.cpp logger.h formatter.h
$(CC) $(INCLUDES) $(CFLAGS) positionmonitor.cpp

reportwriter.o : reportwriter.h reportwriter.cpp frontrunner.h liffeconnect.h
$(CC) $(INCLUDES) $(CFLAGS) reportwriter.cpp

liffe_runbreach.o : liffe_runbreach.cpp datecl.h logger.h breachtester.h liffeconnect.h formatter.h \
breachwriter.h cherrypicker.h frontrunner.h reportwriter.h
$(CC) $(INCLUDES) $(CFLAGS) liffe_runbreach.cpp

clean:
\rm *.o *~ liffe_runbreach-64bit

tar:
tar cfv liffe_runbreach-64bit.tar breachwriter.h breachwriter.cpp cherrypicker.h \
cherrypicker.cpp logger.cpp logger.h breachtester.cpp breachtester.h datecl.h datecl.cpp \
frontrunner.h frontrunner.cpp positionmonitor.h positionmonitor.cpp liffe_runbreach.cpp

Comments

  • gulhk
    gulhk Posts: 3
    it gives me the following error message
    collect2: ld returned 1 exit status
    make: *** [liffe_runbreach-64bit] Error 1
    
  • woboyle
    woboyle Posts: 501
    It is failing to link the executable. My guess is that you are missing some libraries. You didn't include $(LIBRARIES) in your target compilation for liffe_runbreach-64bit. There may be other missing libraries as well. Once all the .o files are created, you can try to build/link the executable manually to determine what is missing. There should be more error messages output than what you are showing, unless you ran make and redirected its output.
  • gulhk
    gulhk Posts: 3
    Thanks woboyle for your reply

    How do I include these libraries to the target compilation? Actually being a beginner I have been following tutorials for makefile and I created this makefile according to the tutorial.

    Yes there is a longgg error msg most of which gives errors about the database. Where am I going wrong? Am I not providing the correct mysql path? Could anyone please help me with this.

    Following is the error message.
    g++ -I/usr/include/mysql++ -I/usr/include/mysql -Wall -c -g breachtester.cpp
    breachtester.cpp:394:15: warning: "/*" within comment
    In file included from breachtester.cpp:1:
    logger.h: In member function ‘Logger& Logger::operator=(const Logger&)’:
    logger.h:21: warning: no return statement in function returning non-void
    In file included from breachtester.cpp:3:
    breachtester.h: At global scope:
    breachtester.h:20: error: expected ‘)’ before ‘&’ token
    breachtester.h:40: error: ISO C++ forbids declaration of ‘Connection’ with no type
    breachtester.h:40: error: expected ‘;’ before ‘&’ token
    In file included from breachtester.cpp:3:
    breachtester.h:55: error: expected ‘)’ before ‘&’ token
    breachtester.h:72: error: expected ‘)’ before ‘&’ token
    breachtester.h:88: error: expected ‘)’ before ‘&’ token
    breachtester.h:104: error: expected ‘)’ before ‘&’ token
    breachtester.h:120: error: expected ‘)’ before ‘&’ token
    breachtester.h:137: error: expected ‘)’ before ‘&’ token
    breachtester.h:156: error: expected ‘)’ before ‘&’ token
    breachtester.h:172: error: expected ‘)’ before ‘&’ token
    breachtester.h:190: error: expected ‘)’ before ‘&’ token
    breachtester.h:208: error: expected ‘;’ before ‘(’ token
    breachtester.cpp:21: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual void BreachTester::ProcessQuery(std::string)’:
    breachtester.cpp:85: error: ‘Query’ was not declared in this scope
    breachtester.cpp:85: error: expected ‘;’ before ‘query’
    breachtester.cpp:86: error: ‘query’ was not declared in this scope
    breachtester.cpp:92: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:92: error: expected ‘;’ before ‘res’
    breachtester.cpp:93: error: ‘res’ was not declared in this scope
    breachtester.cpp:99: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp:101: error: ‘Row’ was not declared in this scope
    breachtester.cpp:101: error: expected ‘;’ before ‘row’
    breachtester.cpp:102: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual void BreachTester::ProcessList()’:
    breachtester.cpp:168: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: In member function ‘std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > BreachTester::GetHalfTrades(std::string)’:
    breachtester.cpp:265: error: ‘Query’ was not declared in this scope
    breachtester.cpp:265: error: expected ‘;’ before ‘query’
    breachtester.cpp:266: error: ‘query’ was not declared in this scope
    breachtester.cpp:270: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:270: error: expected ‘;’ before ‘res’
    breachtester.cpp:271: error: ‘res’ was not declared in this scope
    breachtester.cpp:277: error: ‘Row’ was not declared in this scope
    breachtester.cpp:277: error: expected ‘;’ before ‘row’
    breachtester.cpp:281: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘void BreachTester::DeleteDupes(std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >&)’:
    breachtester.cpp:315: error: ‘Query’ was not declared in this scope
    breachtester.cpp:315: error: expected ‘;’ before ‘query’
    breachtester.cpp:316: error: ‘query’ was not declared in this scope
    breachtester.cpp:317: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:317: error: expected ‘;’ before ‘res1’
    breachtester.cpp:318: error: ‘res1’ was not declared in this scope
    breachtester.cpp:324: error: ‘Row’ was not declared in this scope
    breachtester.cpp:324: error: expected ‘;’ before ‘row’
    breachtester.cpp:325: error: ‘row’ was not declared in this scope
    breachtester.cpp: At global scope:
    breachtester.cpp:340: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual void DeBreachTester::ProcessQuery(std::string)’:
    breachtester.cpp:360: error: ‘Query’ was not declared in this scope
    breachtester.cpp:360: error: expected ‘;’ before ‘query’
    breachtester.cpp:361: error: ‘query’ was not declared in this scope
    breachtester.cpp:364: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:364: error: expected ‘;’ before ‘res’
    breachtester.cpp:365: error: ‘res’ was not declared in this scope
    breachtester.cpp:371: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp:373: error: ‘Row’ was not declared in this scope
    breachtester.cpp:373: error: expected ‘;’ before ‘row’
    breachtester.cpp:374: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual void DeBreachTester::ProcessList()’:
    breachtester.cpp:411: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: In member function ‘virtual std::string DeBreachTester::GetHalfTradeQueryString(std::string)’:
    breachtester.cpp:461: error: ‘Query’ was not declared in this scope
    breachtester.cpp:461: error: expected ‘;’ before ‘query’
    breachtester.cpp:462: error: ‘query’ was not declared in this scope
    breachtester.cpp:463: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:463: error: expected ‘;’ before ‘res’
    breachtester.cpp:464: error: ‘res’ was not declared in this scope
    breachtester.cpp:470: error: ‘Row’ was not declared in this scope
    breachtester.cpp:470: error: expected ‘;’ before ‘row’
    breachtester.cpp:471: error: ‘row’ was not declared in this scope
    breachtester.cpp: At global scope:
    breachtester.cpp:517: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual std::string ErrXBreachTester::GetHalfTradeQueryString(std::string)’:
    breachtester.cpp:550: error: ‘Query’ was not declared in this scope
    breachtester.cpp:550: error: expected ‘;’ before ‘query’
    breachtester.cpp:551: error: ‘query’ was not declared in this scope
    breachtester.cpp:552: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:552: error: expected ‘;’ before ‘res’
    breachtester.cpp:553: error: ‘res’ was not declared in this scope
    breachtester.cpp:559: error: ‘Row’ was not declared in this scope
    breachtester.cpp:559: error: expected ‘;’ before ‘row’
    breachtester.cpp:560: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual std::string ErrXBreachTester::GetDupeQueryString(std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >&)’:
    breachtester.cpp:595: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp:606: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: At global scope:
    breachtester.cpp:637: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual std::string WashBreachTester::GetHalfTradeQueryString(std::string)’:
    breachtester.cpp:673: error: ‘Query’ was not declared in this scope
    breachtester.cpp:673: error: expected ‘;’ before ‘query’
    breachtester.cpp:674: error: ‘query’ was not declared in this scope
    breachtester.cpp:675: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:675: error: expected ‘;’ before ‘res’
    breachtester.cpp:676: error: ‘res’ was not declared in this scope
    breachtester.cpp:682: error: ‘Row’ was not declared in this scope
    breachtester.cpp:682: error: expected ‘;’ before ‘row’
    breachtester.cpp:683: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual std::string WashBreachTester::GetDupeQueryString(std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >&)’:
    breachtester.cpp:709: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp:720: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: At global scope:
    breachtester.cpp:751: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual std::string BlockRepBreachTester::GetHalfTradeQueryString(std::string)’:
    breachtester.cpp:787: error: ‘Query’ was not declared in this scope
    breachtester.cpp:787: error: expected ‘;’ before ‘query’
    breachtester.cpp:788: error: ‘query’ was not declared in this scope
    breachtester.cpp:789: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:789: error: expected ‘;’ before ‘res’
    breachtester.cpp:790: error: ‘res’ was not declared in this scope
    breachtester.cpp:796: error: ‘Row’ was not declared in this scope
    breachtester.cpp:796: error: expected ‘;’ before ‘row’
    breachtester.cpp:797: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual std::string BlockRepBreachTester::GetDupeQueryString(std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >&)’:
    breachtester.cpp:823: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: At global scope:
    breachtester.cpp:854: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual std::string BasisRepBreachTester::GetHalfTradeQueryString(std::string)’:
    breachtester.cpp:890: error: ‘Query’ was not declared in this scope
    breachtester.cpp:890: error: expected ‘;’ before ‘query’
    breachtester.cpp:891: error: ‘query’ was not declared in this scope
    breachtester.cpp:892: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:892: error: expected ‘;’ before ‘res’
    breachtester.cpp:893: error: ‘res’ was not declared in this scope
    breachtester.cpp:899: error: ‘Row’ was not declared in this scope
    breachtester.cpp:899: error: expected ‘;’ before ‘row’
    breachtester.cpp:900: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual std::string BasisRepBreachTester::GetDupeQueryString(std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >&)’:
    breachtester.cpp:926: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: At global scope:
    breachtester.cpp:957: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual void CrossBreachTester::ProcessQuery(std::string)’:
    breachtester.cpp:999: error: ‘Query’ was not declared in this scope
    breachtester.cpp:999: error: expected ‘;’ before ‘query’
    breachtester.cpp:1000: error: ‘query’ was not declared in this scope
    breachtester.cpp:1006: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:1006: error: expected ‘;’ before ‘res’
    breachtester.cpp:1007: error: ‘res’ was not declared in this scope
    breachtester.cpp:1013: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp:1015: error: ‘Row’ was not declared in this scope
    breachtester.cpp:1015: error: expected ‘;’ before ‘row’
    breachtester.cpp:1016: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual void CrossBreachTester::ProcessList()’:
    breachtester.cpp:1078: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: At global scope:
    breachtester.cpp:1142: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual void MABreachTester::CalcReferences(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&, std::string)’:
    breachtester.cpp:1157: error: ‘Query’ was not declared in this scope
    breachtester.cpp:1157: error: expected ‘;’ before ‘query’
    breachtester.cpp:1158: error: ‘query’ was not declared in this scope
    breachtester.cpp:1159: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:1159: error: expected ‘;’ before ‘res’
    breachtester.cpp:1160: error: ‘res’ was not declared in this scope
    breachtester.cpp:1168: error: ‘Row’ was not declared in this scope
    breachtester.cpp:1168: error: expected ‘;’ before ‘row’
    breachtester.cpp:1169: error: ‘row’ was not declared in this scope
    breachtester.cpp:1160: warning: unused variable ‘col’
    breachtester.cpp: In member function ‘virtual void MABreachTester::CalcWeights(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&, size_t&, size_t&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)’:
    breachtester.cpp:1248: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: At global scope:
    breachtester.cpp:1399: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual void StratMABreachTester::ProcessQuery(std::string)’:
    breachtester.cpp:1432: error: ‘Query’ was not declared in this scope
    breachtester.cpp:1432: error: expected ‘;’ before ‘query’
    breachtester.cpp:1433: error: ‘query’ was not declared in this scope
    breachtester.cpp:1436: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:1436: error: expected ‘;’ before ‘res’
    breachtester.cpp:1437: error: ‘res’ was not declared in this scope
    breachtester.cpp:1443: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp:1445: error: ‘Row’ was not declared in this scope
    breachtester.cpp:1445: error: expected ‘;’ before ‘row’
    breachtester.cpp:1446: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual void StratMABreachTester::ProcessList()’:
    breachtester.cpp:1495: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: At global scope:
    breachtester.cpp:1605: error: expected ‘)’ before ‘&’ token
    breachtester.cpp: In member function ‘virtual void BlockMABreachTester::ProcessQuery(std::string)’:
    breachtester.cpp:1637: error: ‘Query’ was not declared in this scope
    breachtester.cpp:1637: error: expected ‘;’ before ‘query’
    breachtester.cpp:1638: error: ‘query’ was not declared in this scope
    breachtester.cpp:1641: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:1641: error: expected ‘;’ before ‘res’
    breachtester.cpp:1642: error: ‘res’ was not declared in this scope
    breachtester.cpp:1648: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp:1650: error: ‘Row’ was not declared in this scope
    breachtester.cpp:1650: error: expected ‘;’ before ‘row’
    breachtester.cpp:1652: error: ‘row’ was not declared in this scope
    breachtester.cpp: In member function ‘virtual void BlockMABreachTester::ProcessList()’:
    breachtester.cpp:1742: warning: comparison between signed and unsigned integer expressions
    breachtester.cpp: In member function ‘virtual std::string BlockMABreachTester::ProcessBlockMA(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&, size_t&, size_t&, std::string, size_t&, std::string&)’:
    breachtester.cpp:1791: error: ‘Query’ was not declared in this scope
    breachtester.cpp:1791: error: expected ‘;’ before ‘query’
    breachtester.cpp:1792: error: ‘query’ was not declared in this scope
    breachtester.cpp:1794: error: ‘StoreQueryResult’ was not declared in this scope
    breachtester.cpp:1794: error: expected ‘;’ before ‘res’
    breachtester.cpp:1795: error: ‘res’ was not declared in this scope
    breachtester.cpp:1801: error: ‘Row’ was not declared in this scope
    breachtester.cpp:1801: error: expected ‘;’ before ‘row’
    breachtester.cpp:1802: error: ‘row’ was not declared in this scope
    breachtester.cpp:1840: error: expected ‘;’ before ‘res1’
    breachtester.cpp:1842: error: ‘res1’ was not declared in this scope
    breachtester.cpp:1844: error: ‘Row’ was not declared in this scope
    breachtester.cpp:1844: error: expected ‘;’ before ‘row’
    breachtester.cpp:1845: error: ‘row’ was not declared in this scope
    breachtester.cpp: At global scope:
    breachtester.cpp:1931: error: ‘BreachTester* BreachTesterFactory::CreateBreachTester’ is not a static member of ‘class BreachTesterFactory’
    breachtester.cpp:1931: error: ‘Connection’ was not declared in this scope
    breachtester.cpp:1931: error: ‘con’ was not declared in this scope
    breachtester.cpp:1931: error: expected primary-expression before ‘MNE’
    breachtester.cpp:1931: error: expected primary-expression before ‘int’
    breachtester.cpp:1931: error: initializer expression list treated as compound expression
    breachtester.cpp:1932: error: expected ‘,’ or ‘;’ before ‘{’ token
    make: *** [breachtester.o] Error 1
    

Categories

Upcoming Training