ppkantorski / Ultrahand-Overlay

The fully craft-able Nintendo Switch overlay executor.
GNU General Public License v2.0
197 stars 25 forks source link

Building error #24

Closed impeeza closed 1 year ago

impeeza commented 1 year ago

Hello there, on latest libs and DevKitPro you get the next errors:


Impeeza@Titan MINGW64 ~/Ultrahand-Overlay
# make all
main.cpp
In file included from C:/msys64/home/Impeeza/Ultrahand-Overlay/source/main.cpp:31:
C:/msys64/home/Impeeza/Ultrahand-Overlay/source/utils.hpp: In function 'void interpretAndExecuteCommand(std::vector<std::vector<std::__cxx11::basic_string<char> > >)':
C:/msys64/home/Impeeza/Ultrahand-Overlay/source/utils.hpp:359:37: **_error: 'stringToNumber' was not declared in this scope_**
  359 |                     int listIndex = stringToNumber(arg.substr(startPos, endPos - startPos + 2));
      |                                     ^~~~~~~~~~~~~~
In file included from C:/msys64/home/Impeeza/Ultrahand-Overlay/lib/libtesla/include/tesla.hpp:68,
                 from C:/msys64/home/Impeeza/Ultrahand-Overlay/source/main.cpp:30:
C:/msys64/home/Impeeza/Ultrahand-Overlay/source/ini_funcs.hpp: At global scope:
C:/msys64/home/Impeeza/Ultrahand-Overlay/source/ini_funcs.hpp:166:66: warning: 'std::map<std::__cxx11::basic_string<char>, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > > parseIni(const std::string&)' defined but not used [-Wunused-function]
  166 | static std::map<std::string, std::map<std::string, std::string>> parseIni(const std::string &str) {
      |                                                                  ^~~~~~~~
make[1]: *** [/opt/devkitpro/devkitA64/base_rules:16: main.o] Error 1
make: *** [Makefile:185: build] Error 2

image

Am I missing some library?

thanks a lot.

ppkantorski commented 1 year ago

Thanks for bringing it to my attention. It appears I forgot to included the updated string_funcs.hpp.

https://github.com/ppkantorski/Ultrahand-Overlay/blob/main/source/string_funcs.hpp

This is the updated version, let me know if you have any issues.

impeeza commented 1 year ago

Thanks a lot for the quick answer, I just build it fine, closing the issue.