switchbrew / switch-examples

Switch examples for devkitA64 and libnx.
https://devkitpro.org/viewforum.php?f=42
559 stars 99 forks source link

undefined reference to `accountGetActiveUser' #67

Closed meunierd closed 5 years ago

meunierd commented 5 years ago

When trying to build the examples I run into this issue:

aarch64-none-elf-gcc -MMD -MP -MF /Users/meunierd/switch/account/build/main.d -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE  -I/Users/meunierd/switch/account/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/Users/meunierd/switch/account/build -D__SWITCH__ -c /Users/meunierd/switch/account/source/main.c -o main.o
/Users/meunierd/switch/account/source/main.c: In function 'main':
/Users/meunierd/switch/account/source/main.c:31:14: warning: implicit declaration of function 'accountGetActiveUser'; did you mean 'accountGetLastOpenedUser'? [-Wimplicit-function-declaration]
         rc = accountGetActiveUser(&userID, &account_selected);
              ^~~~~~~~~~~~~~~~~~~~
              accountGetLastOpenedUser

Is this due to trailing behind libnx?

fincs commented 5 years ago

See 927256ce9921f We didn't get around rolling a new release of the examples yet, sorry.