swlines/CIFReader — Issue #1: Errors compiling
Author: Cueball61
Created: 2012-02-07 12:51:46+00:00
State: open

I installed all the dependencies, compiled MySQL++ appropriately and I'm greeted with this when I try to compile CIFReader

> in file included from classes/NRCIF.h:25:0,
from classes/NRCIF.cpp:22,
from main.cpp:21:
classes/sqlNetRail.h:24:14: error: expected constructor, destructor, or type conversion before ‘(’ token
In file included from main.cpp:21:0:
classes/NRCIF.cpp: In static member function ‘static bool NRCIF::processFile(mysqlpp::Connection&, const char*)’:
classes/NRCIF.cpp:108:10: error: ‘schedules_t’ was not declared in this scope
classes/NRCIF.cpp:108:21: error: template argument 1 is invalid
classes/NRCIF.cpp:108:21: error: template argument 2 is invalid
classes/NRCIF.cpp:108:37: error: invalid type in declaration before ‘;’ token
In file included from main.cpp:21:0:
classes/NRCIF.cpp:330:97: error: ‘class CIFRecordNRBS’ has no member named ‘train_uid’
classes/NRCIF.cpp:374:21: error: expected ‘;’ before ‘row’
classes/NRCIF.cpp:409:22: error: ‘row’ was not declared in this scope
classes/NRCIF.cpp:412:21: error: expected ‘;’ before ‘row’
classes/NRCIF.cpp:447:22: error: ‘row’ was not declared in this scope
In file included from main.cpp:21:0:
classes/NRCIF.cpp:108:23: warning: unused variable ‘scheduleInsert’ [-Wunused-variable]
classes/NRCIF.cpp: In static member function ‘static void NRCIF::runSchedules(mysqlpp::Connection&, std::vector&, std::vector&, std::vector&)’:
classes/NRCIF.cpp:655:2: error: ‘SizeThresholdInsertPolicy’ is not a member of ‘mysqlpp::Query’
classes/NRCIF.cpp:655:44: error: expected primary-expression before ‘>’ token
classes/NRCIF.cpp:655:64: error: ‘insert_policy’ was not declared in this scope
classes/NRCIF.cpp:656:8: error: ‘class mysqlpp::Query’ has no member named ‘insertfrom’
classes/NRCIF.cpp:659:8: error: ‘class mysqlpp::Query’ has no member named ‘insertfrom’
classes/NRCIF.cpp: In static member function ‘static void NRCIF::runSchedulesStpCancel(mysqlpp::Connection&, std::vector&, std::vector&)’:
classes/NRCIF.cpp:704:91: error: ‘class CIFRecordNRBS’ has no member named ‘train_uid’
classes/NRCIF.cpp:725:2: error: ‘SizeThresholdInsertPolicy’ is not a member of ‘mysqlpp::Query’
classes/NRCIF.cpp:725:44: error: expected primary-expression before ‘>’ token
classes/NRCIF.cpp:725:64: error: ‘insert_policy’ was not declared in this scope
classes/NRCIF.cpp:726:8: error: ‘class mysqlpp::Query’ has no member named ‘insertfrom’
main.cpp: In function ‘int main(int, char**)’:
main.cpp:229:39: error: ‘class boost::filesystem3::directory_entry’ has no member named ‘leaf’