Skip to content

Instantly share code, notes, and snippets.

@txomon
Created February 12, 2015 15:23
Show Gist options
  • Save txomon/06ee306ecff4f29285bf to your computer and use it in GitHub Desktop.
Save txomon/06ee306ecff4f29285bf to your computer and use it in GitHub Desktop.
Define error (if you run into this, the problem is the -DPACKAGE and it's ifndef in muzzley/muzzley.h)
$ g++ -DPACKAGE_NAME=\"amz\" -DPACKAGE_TARNAME=\"amz\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"amz\ 0.0.1\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DPACKAGE=\"amz\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBMUZZLEY=1 -DQCC_OS_GROUP_POSIX=1 -DQCC_OS_LINUX=1 -I. -I../include -I../inc-test -std=gnu++0x -fexceptions -fpermissive -Wno-error -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -I/usr/include/libxml2 -pthread -I/usr/include/gupnp-1.0 -I/usr/include/gssdp-1.0 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/uuid -I/usr/local/alljoyn-14.12/include -g -O2 -MT amz-alljoyn_muzzley_connector.o -MD -MP -MF .deps/amz-alljoyn_muzzley_connector.Tpo -c -o amz-alljoyn_muzzley_connector.o alljoyn_muzzley_connector.cc
In file included from /usr/local/alljoyn-14.12/include/muzzley/muzzley.h:40:0,
from alljoyn_muzzley_connector.cc:45:
/usr/local/alljoyn-14.12/include/muzzley/resource/Client.h:229:12: error: ‘sslsocketstream’ in namespace ‘muzzley’ does not name a type
muzzley::sslsocketstream __channel;
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_lighting_connect_API()’:
alljoyn_muzzley_connector.cc:751:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:752:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPGet);
^
alljoyn_muzzley_connector.cc:752:18: error: ‘HTTPGet’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPGet);
^
alljoyn_muzzley_connector.cc:765:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:766:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:768:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200 || _rep->status() == muzzley::HTTP201) {
^
alljoyn_muzzley_connector.cc:768:65: error: ‘HTTP201’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200 || _rep->status() == muzzley::HTTP201) {
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_lighting_connect_manager()’:
alljoyn_muzzley_connector.cc:794:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:795:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPPost);
^
alljoyn_muzzley_connector.cc:795:18: error: ‘HTTPPost’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPPost);
^
alljoyn_muzzley_connector.cc:832:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:833:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:835:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200 || _rep->status() == muzzley::HTTP201) {
^
alljoyn_muzzley_connector.cc:835:65: error: ‘HTTP201’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200 || _rep->status() == muzzley::HTTP201) {
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_replace_lighting_components()’:
alljoyn_muzzley_connector.cc:867:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:868:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPPost);
^
alljoyn_muzzley_connector.cc:868:18: error: ‘HTTPPost’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPPost);
^
alljoyn_muzzley_connector.cc:920:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:921:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:923:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200) {}
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_add_lighting_component(lsf::LSFString, lsf::LSFString)’:
alljoyn_muzzley_connector.cc:943:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:944:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPPut);
^
alljoyn_muzzley_connector.cc:944:18: error: ‘HTTPPut’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPPut);
^
alljoyn_muzzley_connector.cc:982:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:983:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:985:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200) {}
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_add_lighting_components(lsf::LSFStringList)’:
alljoyn_muzzley_connector.cc:1006:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:1007:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPPut);
^
alljoyn_muzzley_connector.cc:1007:18: error: ‘HTTPPut’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPPut);
^
alljoyn_muzzley_connector.cc:1048:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:1049:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:1051:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200) {}
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_remove_lighting_components(lsf::LSFStringList)’:
alljoyn_muzzley_connector.cc:1071:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:1072:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPDelete);
^
alljoyn_muzzley_connector.cc:1072:18: error: ‘HTTPDelete’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPDelete);
^
alljoyn_muzzley_connector.cc:1111:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:1112:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:1114:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200) {}
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_plugs_connect_API()’:
alljoyn_muzzley_connector.cc:1178:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:1179:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPGet);
^
alljoyn_muzzley_connector.cc:1179:18: error: ‘HTTPGet’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPGet);
^
alljoyn_muzzley_connector.cc:1192:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:1193:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:1195:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200 || _rep->status() == muzzley::HTTP201) {
^
alljoyn_muzzley_connector.cc:1195:65: error: ‘HTTP201’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200 || _rep->status() == muzzley::HTTP201) {
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_plugs_connect_manager()’:
alljoyn_muzzley_connector.cc:1221:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:1222:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPPost);
^
alljoyn_muzzley_connector.cc:1222:18: error: ‘HTTPPost’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPPost);
^
alljoyn_muzzley_connector.cc:1259:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:1260:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:1262:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200 || _rep->status() == muzzley::HTTP201) {
^
alljoyn_muzzley_connector.cc:1262:65: error: ‘HTTP201’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200 || _rep->status() == muzzley::HTTP201) {
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_replace_plugs_components()’:
alljoyn_muzzley_connector.cc:1294:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:1295:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPPost);
^
alljoyn_muzzley_connector.cc:1295:18: error: ‘HTTPPost’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPPost);
^
alljoyn_muzzley_connector.cc:1335:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:1336:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:1338:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200) {}
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_add_plugs_component(std::string, std::string)’:
alljoyn_muzzley_connector.cc:1357:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:1358:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPPut);
^
alljoyn_muzzley_connector.cc:1358:18: error: ‘HTTPPut’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPPut);
^
alljoyn_muzzley_connector.cc:1395:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:1396:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:1398:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200) {}
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_add_plugs_components(std::string, std::string)’:
alljoyn_muzzley_connector.cc:1418:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:1419:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPPut);
^
alljoyn_muzzley_connector.cc:1419:18: error: ‘HTTPPut’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPPut);
^
alljoyn_muzzley_connector.cc:1456:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:1457:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:1459:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200) {}
^
alljoyn_muzzley_connector.cc: In function ‘bool muzzley_remove_plugs_component(std::string, std::string)’:
alljoyn_muzzley_connector.cc:1479:5: error: ‘HTTPReq’ is not a member of ‘muzzley’
muzzley::HTTPReq _req;
^
alljoyn_muzzley_connector.cc:1480:5: error: ‘_req’ was not declared in this scope
_req->method(muzzley::HTTPDelete);
^
alljoyn_muzzley_connector.cc:1480:18: error: ‘HTTPDelete’ is not a member of ‘muzzley’
_req->method(muzzley::HTTPDelete);
^
alljoyn_muzzley_connector.cc:1519:5: error: ‘HTTPRep’ is not a member of ‘muzzley’
muzzley::HTTPRep _rep;
^
alljoyn_muzzley_connector.cc:1520:16: error: ‘_rep’ was not declared in this scope
_socket >> _rep;
^
alljoyn_muzzley_connector.cc:1522:27: error: ‘HTTP200’ is not a member of ‘muzzley’
if (_rep->status() == muzzley::HTTP200) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment