fortheusers / hb-appstore

Homebrew App Store - GUI for downloading/managing homebrew apps
https://hb-app.store
GNU General Public License v3.0
1.08k stars 64 forks source link

Error while compiling #18

Closed shyim closed 6 years ago

shyim commented 6 years ago

I am trying to compile the app store and get always the error

/opt/devkitpro/libnx/include/switch/services/audren.h: In function 'constexpr size_t audrenGetOutputParamSize(const AudioRendererConfig*)':
/opt/devkitpro/libnx/include/switch/services/audren.h:318:1: error: body of 'constexpr' function 'constexpr size_t audrenGetOutputParamSize(const AudioRendererConfig*)' not a return-statement

I am new with libnx :see_no_evil:

vgmoose commented 6 years ago

Looks like a change from the latest (1.4.0) libnx release. This answer suggests that it has to do with multi-line bodies of a constexpr function only being allowed in C++14.

I've made a change to use -std=gnu++14 in the Makefile, which should resolve the issue. Thanks for the report!

vgmoose commented 6 years ago

(relevant commit: https://github.com/vgmoose/appstorenx/commit/fc1801be487c6a801025a01744991f4b5fede281)