Overview
Features
Download
Documentation
Community
Add-Ons & Services

iOS compile error: TypeHandler and long unsigned int

Please post support and help requests here.

iOS compile error: TypeHandler and long unsigned int

Postby Hitnrun » 03 Sep 2012, 02:28

Compiling on OSX with target iPhoneSimulator, I got this error that I can't seem to understand, what "long unsigned int" is different from all other int types?
Also it shows error on src/RecordSet.cpp:389, but this is the last line of the file.

---------------------
Code: Select all
** Compiling src/RecordSet.cpp (debug, static)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2  -Iinclude -I/Users/rangelreale/Documents/prog/src/poco-ios/CppUnit/include -I/Users/rangelreale/Documents/prog/src/poco-ios/Foundation/include -I/Users/rangelreale/Documents/prog/src/poco-ios/XML/include -I/Users/rangelreale/Documents/prog/src/poco-ios/JSON/include -I/Users/rangelreale/Documents/prog/src/poco-ios/Util/include -I/Users/rangelreale/Documents/prog/src/poco-ios/Net/include -I/Users/rangelreale/Documents/prog/src/poco-ios/Crypto/include -I/Users/rangelreale/Documents/prog/src/poco-ios/NetSSL_OpenSSL/include -I/Users/rangelreale/Documents/prog/src/poco-ios/Data/include -I/Users/rangelreale/Documents/prog/src/poco-ios/Data/SQLite/include -I/Users/rangelreale/Documents/prog/src/poco-ios/Data/ODBC/include -I/Users/rangelreale/Documents/prog/src/poco-ios/#Data/MySQL/include -I/Users/rangelreale/Documents/prog/src/poco-ios/Zip/include -I/Users/rangelreale/Documents/prog/src/poco-ios/PageCompiler/include -I/Users/rangelreale/Documents/prog/src/poco-ios/PageCompiler/File2Page/include -I/Users/rangelreale/Documents/prog/src/poco-ios/#ApacheConnector/include -I/Users/rangelreale/Documents/prog/src/poco-ios/PDF/include -I/Users/rangelreale/Documents/prog/src/poco-ios/CppParser/include -I/Users/rangelreale/Documents/prog/src/poco-ios/PocoDoc/include -I/Users/rangelreale/Documents/prog/src/poco-ios/ProGen/include -arch i686 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -miphoneos-version-min=5.1 -Wall -Wno-sign-compare  -DPOCO_BUILD_HOST=Rangels-MacBook-Pro.local  -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS  -g -D_DEBUG=   -c src/RecordSet.cpp -o /Users/rangelreale/Documents/prog/src/poco-ios/Data/obj/iPhoneSimulator/i686/debug_static/RecordSet.o
include/Poco/Data/TypeHandler.h: In static member function ‘static void Poco::Data::TypeHandler<T>::extract(size_t, T&, const T&, Poco::Data::AbstractExtractor*) [with T = long unsigned int]’:
include/Poco/Data/Extraction.h:117:   instantiated from ‘size_t Poco::Data::Extraction<T>::extract(size_t) [with T = long unsigned int]’
src/RecordSet.cpp:389:   instantiated from here
include/Poco/Data/TypeHandler.h:154: error: no matching function for call to ‘Poco::Data::AbstractExtractor::extract(size_t&, long unsigned int&)’
include/Poco/Data/AbstractExtractor.h:81: note: candidates are: virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Int8&)
include/Poco/Data/AbstractExtractor.h:84: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<signed char, std::allocator<signed char> >&)
include/Poco/Data/AbstractExtractor.h:87: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<signed char, std::allocator<signed char> >&)
include/Poco/Data/AbstractExtractor.h:90: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<signed char, std::allocator<signed char> >&)
include/Poco/Data/AbstractExtractor.h:93: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::UInt8&)
include/Poco/Data/AbstractExtractor.h:96: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<unsigned char, std::allocator<unsigned char> >&)
include/Poco/Data/AbstractExtractor.h:99: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<unsigned char, std::allocator<unsigned char> >&)
include/Poco/Data/AbstractExtractor.h:102: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<unsigned char, std::allocator<unsigned char> >&)
include/Poco/Data/AbstractExtractor.h:105: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Int16&)
include/Poco/Data/AbstractExtractor.h:108: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<short int, std::allocator<short int> >&)
include/Poco/Data/AbstractExtractor.h:111: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<short int, std::allocator<short int> >&)
include/Poco/Data/AbstractExtractor.h:114: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<short int, std::allocator<short int> >&)
include/Poco/Data/AbstractExtractor.h:117: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::UInt16&)
include/Poco/Data/AbstractExtractor.h:120: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<short unsigned int, std::allocator<short unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:123: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<short unsigned int, std::allocator<short unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:126: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<short unsigned int, std::allocator<short unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:129: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Int32&)
include/Poco/Data/AbstractExtractor.h:132: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<int, std::allocator<int> >&)
include/Poco/Data/AbstractExtractor.h:135: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<int, std::allocator<int> >&)
include/Poco/Data/AbstractExtractor.h:138: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<int, std::allocator<int> >&)
include/Poco/Data/AbstractExtractor.h:141: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::UInt32&)
include/Poco/Data/AbstractExtractor.h:144: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<unsigned int, std::allocator<unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:147: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<unsigned int, std::allocator<unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:150: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<unsigned int, std::allocator<unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:153: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Int64&)
include/Poco/Data/AbstractExtractor.h:156: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<long long int, std::allocator<long long int> >&)
include/Poco/Data/AbstractExtractor.h:159: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<long long int, std::allocator<long long int> >&)
include/Poco/Data/AbstractExtractor.h:162: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<long long int, std::allocator<long long int> >&)
include/Poco/Data/AbstractExtractor.h:165: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::UInt64&)
include/Poco/Data/AbstractExtractor.h:168: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<long long unsigned int, std::allocator<long long unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:171: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<long long unsigned int, std::allocator<long long unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:174: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<long long unsigned int, std::allocator<long long unsigned int> >&)
include/Poco/Data/AbstractExtractor.h:178: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, long int&)
include/Poco/Data/AbstractExtractor.h:181: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<long int, std::allocator<long int> >&)
include/Poco/Data/AbstractExtractor.h:184: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<long int, std::allocator<long int> >&)
include/Poco/Data/AbstractExtractor.h:187: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<long int, std::allocator<long int> >&)
include/Poco/Data/AbstractExtractor.h:191: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, bool&)
include/Poco/Data/AbstractExtractor.h:194: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<bool, std::allocator<bool> >&)
include/Poco/Data/AbstractExtractor.h:197: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<bool, std::allocator<bool> >&)
include/Poco/Data/AbstractExtractor.h:200: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<bool, std::allocator<bool> >&)
include/Poco/Data/AbstractExtractor.h:203: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, float&)
include/Poco/Data/AbstractExtractor.h:206: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<float, std::allocator<float> >&)
include/Poco/Data/AbstractExtractor.h:209: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<float, std::allocator<float> >&)
include/Poco/Data/AbstractExtractor.h:212: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<float, std::allocator<float> >&)
include/Poco/Data/AbstractExtractor.h:215: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, double&)
include/Poco/Data/AbstractExtractor.h:218: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<double, std::allocator<double> >&)
include/Poco/Data/AbstractExtractor.h:221: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<double, std::allocator<double> >&)
include/Poco/Data/AbstractExtractor.h:224: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<double, std::allocator<double> >&)
include/Poco/Data/AbstractExtractor.h:227: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, char&)
include/Poco/Data/AbstractExtractor.h:230: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<char, std::allocator<char> >&)
include/Poco/Data/AbstractExtractor.h:233: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<char, std::allocator<char> >&)
include/Poco/Data/AbstractExtractor.h:236: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<char, std::allocator<char> >&)
include/Poco/Data/AbstractExtractor.h:239: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::string&)
include/Poco/Data/AbstractExtractor.h:242: note:                 virtual bool Poco::Data::AbstractExtractor::extract(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> > > >&)
include/Poco/Data/AbstractExtractor.h:245: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)
include/Poco/Data/AbstractExtractor.h:248: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)
include/Poco/Data/AbstractExtractor.h:251: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Data::BLOB&)
include/Poco/Data/AbstractExtractor.h:254: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Data::CLOB&)
include/Poco/Data/AbstractExtractor.h:257: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<Poco::Data::LOB<unsigned char>, std::allocator<Poco::Data::LOB<unsigned char> > >&)
include/Poco/Data/AbstractExtractor.h:260: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<Poco::Data::LOB<unsigned char>, std::allocator<Poco::Data::LOB<unsigned char> > >&)
include/Poco/Data/AbstractExtractor.h:263: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<Poco::Data::LOB<unsigned char>, std::allocator<Poco::Data::LOB<unsigned char> > >&)
include/Poco/Data/AbstractExtractor.h:266: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<Poco::Data::LOB<char>, std::allocator<Poco::Data::LOB<char> > >&)
include/Poco/Data/AbstractExtractor.h:269: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<Poco::Data::LOB<char>, std::allocator<Poco::Data::LOB<char> > >&)
include/Poco/Data/AbstractExtractor.h:272: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<Poco::Data::LOB<char>, std::allocator<Poco::Data::LOB<char> > >&)
include/Poco/Data/AbstractExtractor.h:275: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::DateTime&)
include/Poco/Data/AbstractExtractor.h:278: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<Poco::DateTime, std::allocator<Poco::DateTime> >&)
include/Poco/Data/AbstractExtractor.h:281: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<Poco::DateTime, std::allocator<Poco::DateTime> >&)
include/Poco/Data/AbstractExtractor.h:284: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<Poco::DateTime, std::allocator<Poco::DateTime> >&)
include/Poco/Data/AbstractExtractor.h:287: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Data::Date&)
include/Poco/Data/AbstractExtractor.h:290: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<Poco::Data::Date, std::allocator<Poco::Data::Date> >&)
include/Poco/Data/AbstractExtractor.h:293: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<Poco::Data::Date, std::allocator<Poco::Data::Date> >&)
include/Poco/Data/AbstractExtractor.h:296: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<Poco::Data::Date, std::allocator<Poco::Data::Date> >&)
include/Poco/Data/AbstractExtractor.h:299: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Data::Time&)
include/Poco/Data/AbstractExtractor.h:302: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<Poco::Data::Time, std::allocator<Poco::Data::Time> >&)
include/Poco/Data/AbstractExtractor.h:305: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<Poco::Data::Time, std::allocator<Poco::Data::Time> >&)
include/Poco/Data/AbstractExtractor.h:308: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<Poco::Data::Time, std::allocator<Poco::Data::Time> >&)
include/Poco/Data/AbstractExtractor.h:311: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Any&)
include/Poco/Data/AbstractExtractor.h:314: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<Poco::Any, std::allocator<Poco::Any> >&)
include/Poco/Data/AbstractExtractor.h:317: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<Poco::Any, std::allocator<Poco::Any> >&)
include/Poco/Data/AbstractExtractor.h:320: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<Poco::Any, std::allocator<Poco::Any> >&)
include/Poco/Data/AbstractExtractor.h:323: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, Poco::Dynamic::Var&)
include/Poco/Data/AbstractExtractor.h:326: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::vector<Poco::Dynamic::Var, std::allocator<Poco::Dynamic::Var> >&)
include/Poco/Data/AbstractExtractor.h:329: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::deque<Poco::Dynamic::Var, std::allocator<Poco::Dynamic::Var> >&)
include/Poco/Data/AbstractExtractor.h:332: note:                 virtual bool Poco::Data::AbstractExtractor::extract(size_t, std::list<Poco::Dynamic::Var, std::allocator<Poco::Dynamic::Var> >&)
include/Poco/Data/TypeHandler.h: In static member function ‘static void Poco::Data::TypeHandler<T>::prepare(size_t, T&, Poco::Data::AbstractPreparator*) [with T = long unsigned int]’:
include/Poco/Data/Preparation.h:75:   instantiated from ‘void Poco::Data::Preparation<T>::prepare() [with T = long unsigned int]’
src/RecordSet.cpp:389:   instantiated from here
include/Poco/Data/TypeHandler.h:160: error: call of overloaded ‘prepare(size_t&, long unsigned int&)’ is ambiguous
include/Poco/Data/AbstractPreparator.h:87: note: candidates are: virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::Int8&)
include/Poco/Data/AbstractPreparator.h:99: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::UInt8&)
include/Poco/Data/AbstractPreparator.h:111: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::Int16&)
include/Poco/Data/AbstractPreparator.h:123: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::UInt16&)
include/Poco/Data/AbstractPreparator.h:135: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::Int32&)
include/Poco/Data/AbstractPreparator.h:147: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::UInt32&)
include/Poco/Data/AbstractPreparator.h:159: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::Int64&)
include/Poco/Data/AbstractPreparator.h:171: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::UInt64&)
include/Poco/Data/AbstractPreparator.h:184: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const long int&)
include/Poco/Data/AbstractPreparator.h:197: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const bool&)
include/Poco/Data/AbstractPreparator.h:209: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const float&)
include/Poco/Data/AbstractPreparator.h:221: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const double&)
include/Poco/Data/AbstractPreparator.h:233: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const char&)
include/Poco/Data/AbstractPreparator.h:245: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const std::string&) <near match>
include/Poco/Data/AbstractPreparator.h:281: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::DateTime&)
include/Poco/Data/AbstractPreparator.h:317: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::Any&)
include/Poco/Data/AbstractPreparator.h:329: note:                 virtual void Poco::Data::AbstractPreparator::prepare(size_t, const Poco::Dynamic::Var&)
Hitnrun
 
Posts: 20
Joined: 01 Apr 2009, 18:32

Re: iOS compile error: TypeHandler and long unsigned int

Postby alex » 03 Sep 2012, 17:16

Trunk has not been compiled or tested on iPhone yet. Use 1.4.3 release or 1.4.4 branch.
alex
 
Posts: 1130
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: iOS compile error: TypeHandler and long unsigned int

Postby Hitnrun » 03 Sep 2012, 18:59

I fixed this problem, I sent a patch to the poco-develop list to see if it doesn't affect other platforms, it it better to send to the list, or post these follow-ups here?
Hitnrun
 
Posts: 20
Joined: 01 Apr 2009, 18:32

Re: iOS compile error: TypeHandler and long unsigned int

Postby alex » 03 Sep 2012, 19:30

Best to file patch on SF tracker, those are emailed automatically to poco-develop.
alex
 
Posts: 1130
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron