Hi, I've just added Luabind 0.9.1 to a project and tried to compile. I'm getting a pile of errors about "reference to 'object' is ambiguous". Google gives a few other people with the same issue, but no solution, so I'm hoping someone here might have come across this before and solved it? Thanks, Benjohn Here's a more complete error message: In file included from /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/make_function.hpp:13: In file included from /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/function.hpp:8: In file included from /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/class.hpp:94: In file included from /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/luabind.hpp:28: In file included from /Users/benjohn/Code/iPhone/2Dgles/2Dgles/../../ThirdParty/luabind-0.9.1/src/class_info.cpp:27: /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:95:1: error: reference to 'object' is ambiguous [3] LUABIND_TYPE_TO_STRING(luabind::object) ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:73:27: note: instantiated from: struct type_to_string<x> \ ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:95:33: note: instantiated from: LUABIND_TYPE_TO_STRING(luabind::object) ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/object.hpp:824:12: note: candidate found by name lookup is 'luabind::object' [3] using adl::object; ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:18:7: note: candidate found by name lookup is 'luabind::object' [3] class object; ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:96:1: error: reference to 'argument' is ambiguous [3] LUABIND_TYPE_TO_STRING(luabind::argument) ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:73:27: note: instantiated from: struct type_to_string<x> \ ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:96:33: note: instantiated from: LUABIND_TYPE_TO_STRING(luabind::argument) ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/object.hpp:825:12: note: candidate found by name lookup is 'luabind::argument' [3] using adl::argument; ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:19:7: note: candidate found by name lookup is 'luabind::argument' [3] class argument; ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:102:23: error: reference to 'table' is ambiguous [3] struct type_to_string<table<Base> > ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/object.hpp:1187:12: note: candidate found by name lookup is 'luabind::table' [3] using adl::table; ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:21:8: note: candidate found by name lookup is 'luabind::table' [3] struct table; ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:102:29: error: 'Base' does not refer to a value [3] struct type_to_string<table<Base> > ^ /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:101:17: note: declared here [3] template <class Base> -- [hidden email] - Twitter @benjohnbarnes - Skype benjohnbarnes - Mobile +44 (0) 7968 851 636 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ luabind-user mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/luabind-user |
hi,
what compiler does your project use? I vaguely remember having problems with clang. Try switching to gcc or get the latest luabind from github. I think the clang build was fixed in master. hth, Tony On 03.10.2011, at 22:50, Benjohn Barnes wrote: > > Hi, > > I've just added Luabind 0.9.1 to a project and tried to compile. I'm getting a pile of errors about "reference to 'object' is ambiguous". Google gives a few other people with the same issue, but no solution, so I'm hoping someone here might have come across this before and solved it? > > Thanks, > Benjohn > > Here's a more complete error message: > > In file included from /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/make_function.hpp:13: > In file included from /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/function.hpp:8: > In file included from /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/class.hpp:94: > In file included from /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/luabind.hpp:28: > In file included from /Users/benjohn/Code/iPhone/2Dgles/2Dgles/../../ThirdParty/luabind-0.9.1/src/class_info.cpp:27: > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:95:1: error: reference to 'object' is ambiguous [3] > LUABIND_TYPE_TO_STRING(luabind::object) > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:73:27: note: instantiated from: > struct type_to_string<x> \ > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:95:33: note: instantiated from: > LUABIND_TYPE_TO_STRING(luabind::object) > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/object.hpp:824:12: note: candidate found by name lookup is 'luabind::object' [3] > using adl::object; > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:18:7: note: candidate found by name lookup is 'luabind::object' [3] > class object; > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:96:1: error: reference to 'argument' is ambiguous [3] > LUABIND_TYPE_TO_STRING(luabind::argument) > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:73:27: note: instantiated from: > struct type_to_string<x> \ > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:96:33: note: instantiated from: > LUABIND_TYPE_TO_STRING(luabind::argument) > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/object.hpp:825:12: note: candidate found by name lookup is 'luabind::argument' [3] > using adl::argument; > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:19:7: note: candidate found by name lookup is 'luabind::argument' [3] > class argument; > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:102:23: error: reference to 'table' is ambiguous [3] > struct type_to_string<table<Base> > > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/object.hpp:1187:12: note: candidate found by name lookup is 'luabind::table' [3] > using adl::table; > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:21:8: note: candidate found by name lookup is 'luabind::table' [3] > struct table; > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:102:29: error: 'Base' does not refer to a value [3] > struct type_to_string<table<Base> > > ^ > /Users/benjohn/Code/iPhone/2Dgles/../ThirdParty/luabind-0.9.1/luabind/detail/format_signature.hpp:101:17: note: declared here [3] > template <class Base> > > -- > [hidden email] - Twitter @benjohnbarnes - Skype benjohnbarnes - Mobile +44 (0) 7968 851 636 > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > luabind-user mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/luabind-user ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ luabind-user mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/luabind-user |
On 5 Oct 2011, at 09:07, Tony Kostanjsek wrote: > hi, > what compiler does your project use? I vaguely remember having problems with clang. Try switching to gcc or get the latest luabind from github. I think the clang build was fixed in master. > hth, > Tony Hi Tony, Thanks – you're absolutely right: I'm using clang as that's the XCode default compiler now. The other people I found with the same problem also seemed to be working on iPhone, so probably had the same issue. I've made a good start on hand writing the bindings, which seems to be teaching me a lot of Lua (and is making me think about the Lua interface, which I've modified from the c++ original). I'll take a look at the latest in github if it gets out of hand though! Thanks, Benjohn -- [hidden email] - Twitter @benjohnbarnes - Skype benjohnbarnes - Mobile +44 (0) 7968 851 636 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ luabind-user mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/luabind-user |
Free forum by Nabble | Edit this page |