AtmoXL compiling error

  • Thread starter Thread starter Shadas
  • Start date Start date
  • Views Views 1,018
  • Replies Replies 0

Shadas

Active Member
Newcomer
Joined
Oct 2, 2019
Messages
36
Reaction score
13
Trophies
1
Age
38
XP
1,934
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