AtmoXL compiling error

Shadas

Member
OP
Newcomer
Joined
Oct 2, 2019
Messages
15
Trophies
0
Age
36
XP
1,334
Country
Czech Republic
Trying to compile my own AtmoXL with some adjustments but i still getting this error (compiling with libnx 4.3.0 and libusbhsfs 0.2.8 as author mentioned). Tried also to add line "include <algorithm> in usbhdd.cpp and it compiles without any errors, but in app when i sellect install title from usb hdd the aplication stuck and after few seconds crash. Normal version works without any issues.

Code:
usbhdd.cpp
C:/devkitPro/AtmoXL-Titel-Installer-1.7.3/source/nx/usbhdd.cpp: In function 'int nx::hdd::entry(void*)':
C:/devkitPro/AtmoXL-Titel-Installer-1.7.3/source/nx/usbhdd.cpp:119:97: error: 'min' is not a member of 'std'
  119 |                         if(!(listed_device_count = usbHsFsListMountedDevices(g_usbDevices, std::min(g_usbDeviceCount, MAX_DEVICES))))
      |                                                                                                 ^~~
C:/devkitPro/AtmoXL-Titel-Installer-1.7.3/source/nx/usbhdd.cpp: In function 'u32 nx::hdd::count()':
C:/devkitPro/AtmoXL-Titel-Installer-1.7.3/source/nx/usbhdd.cpp:132:29: error: 'min' is not a member of 'std'
  132 |                 return std::min(g_usbDeviceCount, MAX_DEVICES);
      |                             ^~~
make[1]: *** [/opt/devkitpro/devkitA64/base_rules:16: usbhdd.o] Error 1
make: *** [Makefile:176: build] Error 2

Any ideas?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Lol rappers still promoting crypto