Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.cpp
- aarch64-none-elf-g++ -MMD -MP -MF /home/public/tesla_test/build/main.d -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/public/tesla_test/include -I/home/public/tesla_test/libs/libtesla/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/public/tesla_test/build -D__SWITCH__ -fno-exceptions -std=c++17 -c /home/public/tesla_test/source/main.cpp -o main.o
- C:/Users/public/tesla_test/source/main.cpp: In member function 'virtual tsl::elm::Element* GuiTest::createUI()':
- C:/Users/public/tesla_test/source/main.cpp:17:80: error: no matching function for call to 'tsl::elm::ListItem::ListItem(const char [20], const char [4])'
- 17 | auto* clickableListItem = new tsl::elm::ListItem("Clickable List Item", "...");
- | ^
- In file included from C:/Users/public/tesla_test/source/main.cpp:2:
- C:/Users/public/tesla_test/include/tesla.hpp:1919:13: note: candidate: 'tsl::elm::ListItem::ListItem(const string&)'
- 1919 | ListItem(const std::string& text)
- | ^~~~~~~~
- C:/Users/public/tesla_test/include/tesla.hpp:1919:13: note: candidate expects 1 argument, 2 provided
- C:/Users/public/tesla_test/include/tesla.hpp:1912:15: note: candidate: 'tsl::elm::ListItem::ListItem(const tsl::elm::ListItem&)'
- 1912 | class ListItem : public Element {
- | ^~~~~~~~
- C:/Users/public/tesla_test/include/tesla.hpp:1912:15: note: candidate expects 1 argument, 2 provided
- C:/Users/public/tesla_test/source/main.cpp: In lambda function:
- C:/Users/public/tesla_test/source/main.cpp:20:19: error: 'GuiSecondary' was not declared in this scope
- 20 | tsl::changeTo<GuiSecondary>();
- | ^~~~~~~~~~~~
- C:/Users/public/tesla_test/source/main.cpp:20:33: error: no matching function for call to 'changeTo<<expression error> >()'
- 20 | tsl::changeTo<GuiSecondary>();
- | ^
- In file included from C:/Users/public/tesla_test/source/main.cpp:2:
- C:/Users/public/tesla_test/include/tesla.hpp:3261:32: note: candidate: 'template<class G, class ... Args> std::unique_ptr<tsl::Gui>& tsl::changeTo(Args&& ...)'
- 3261 | std::unique_ptr<tsl::Gui>& changeTo(Args&&... args) {
- | ^~~~~~~~
- C:/Users/public/tesla_test/include/tesla.hpp:3261:32: note: template argument deduction/substitution failed:
- C:/Users/public/tesla_test/source/main.cpp:20:33: error: template argument 1 is invalid
- 20 | tsl::changeTo<GuiSecondary>();
- | ^
- make[1]: *** [/opt/devkitpro/devkitA64/base_rules:14: main.o] Error 1
- make: *** [Makefile:169: build] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement