The error:
main.cpp:48:3: error: expected â]â before âluabindâ
main.cpp:48:3: error: expected â;â before âluabindâ
The code (Line 48 is the bindings for Connection):
luabind::module(L) [
luabind::class_<Account>("Account")
.def("engineType", &Account::engineType)
.def_readonly("name", &Account::getName)
.property("essence", &Account::getEssence, &Account::setEssence)
.def("addCharacter", &Account::addCharacter)
.def("removeCharacter", &Account::removeCharacter)
.def("chckCharacter", &Account::chckCharacter)
.def("countCharacters", &Account::countCharacters)
.def("clearCharacters", &Account::clearCharacters)
.def("addDatum", (void(Account::*)(std::string, std::string, int)) &Account::addDatum)
.def("addDatum", (void(Account::*)(std::string, std::string)) &Account::addDatum)
.def("removeDatum", &Account::removeDatum)
.def("hasDatum", &Account::hasDatum)
.def("getDatum", &Account::getDatum)
.def("countData", &Account::countData)
.def("getDatumInfo", &Account::getDatumInfo)
.def("getDatumDur", &Account::getDatumDur)
.def("setDatumInfo", &Account::setDatumInfo)
.def("setDatumDur", &Account::setDatumDur)
.def("changePassword", &Account::changePassword)
.def("chckPassword", &Account::chckPassword)
.def_readwrite("isnew", &Account::isnew)
luabind::class_<Connection>("Connection")
.def("engineType", &Connection::engineType)
.property("buffer", &Connection::getBuffer, &Connection::setBuffer)
.def("write", &Connection::write)
.def("send", &Connection::send)
.def("close", &Connection::close)
.def("getAccount", &Connection::getAccount)
.def("initAccount", &Connection::initAccount)
.def("clearAccount", &Connection::clearAccount)
.def_readwrite("state", &Connection::state)
luabind::class_<Datum>("Datum")
.def("engineType", &Datum::engineType)
.def(luabind::constructor<char*>())
.def(luabind::constructor<char*, char*>())
.def(luabind::constructor<char*, char*, int>())
.property("name", &Datum::getName, &Datum::setName)
.property("info", &Datum::getInfo, &Datum::setInfo)
.property("duration", &Datum::getDuration, &Datum::setDuration)
];
Any help on discerning what the error is or why it might be happening would be appreciated. Thank you ahead of time. (Also, I apologize if this is in the wrong section.)