Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile for chipKIT #11

Open
JacobChrist opened this issue Jan 29, 2022 · 0 comments
Open

Does not compile for chipKIT #11

JacobChrist opened this issue Jan 29, 2022 · 0 comments

Comments

@JacobChrist
Copy link

I tired to add to a chipKIT project (basically an empty sketch) and got the following output when I tried to compile:

In file included from /home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBORComposed.h:4:0,
                 from /home/jacob/pontech/chipKIT-footmouse/sketch_jan28b/sketch_jan28b.ino:1:
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h: In instantiation of 'CBOR::CBOR(T) [with T = unsigned int]':
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:773:28:   required from 'CBOR CBOR::find_by_key(T) [with T = unsigned int]'
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:287:27:   required from 'CBOR CBOR::access_op_numeric(T) [with T = unsigned int]'
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:825:72:   required from here
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:303:41: error: call of overloaded 'add(unsigned int&)' is ambiguous
   template <typename T> CBOR(T value) { add(value); }
                                         ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:303:41: note: candidates are:
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:196:8: note: bool CBOR::add(bool)
   bool add(bool value);
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:206:8: note: bool CBOR::add(uint8_t)
   bool add(uint8_t value) { return encode_type_num(CBOR_UINT, value); }
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:207:8: note: bool CBOR::add(uint16_t)
   bool add(uint16_t value) { return encode_type_num(CBOR_UINT, value); }
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:208:8: note: bool CBOR::add(uint32_t)
   bool add(uint32_t value) { return encode_type_num(CBOR_UINT, value); }
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:209:8: note: bool CBOR::add(uint64_t)
   bool add(uint64_t value) { return encode_type_num(CBOR_UINT, value); }
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:219:8: note: bool CBOR::add(int8_t)
   bool add(int8_t value);
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:220:8: note: bool CBOR::add(int16_t)
   bool add(int16_t value);
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:221:8: note: bool CBOR::add(int32_t)
   bool add(int32_t value);
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:222:8: note: bool CBOR::add(int64_t)
   bool add(int64_t value);
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:229:8: note: bool CBOR::add(float)
   bool add(float value);
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:235:8: note: bool CBOR::add(double)
   bool add(double value);
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:242:8: note: bool CBOR::add(const char*) <near match>
   bool add(const char* value);
        ^
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:242:8: note:   no known conversion for argument 1 from 'unsigned int' to 'const char*'
/home/jacob/pontech/chipKIT-footmouse/libraries/YACL/src/CBOR.h:256:8: note: bool CBOR::add(const CBOR&)
   bool add(const CBOR &value);
        ^
exit status 255
/home/jacob/arduino-1.8.13-linux64/arduino-1.8.13/arduino-builder returned 255
Error compiling for board Fubarino Mini.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant