Fail to compile standalone with make -f makefile.wii

Issue #447 resolved
Former user created an issue

/media/demetris/c4487cfd-d71a-441b-b83d-23d8ce19475d/genesis-plus-gx/gx/config.h:117:43: error: 'MAXPATHLEN' undeclared here (not in a function); did you mean 'MAXNAMLEN'? char lastdir[FILETYPE_MAX][TYPE_RECENT][MAXPATHLEN];

Comments (3)

  1. Eke ekeeke repo owner

    No, it's MAXPATHLEN and this always compiled fine for me and surely others (as that file has not been modified for years) so it is likely happening because of some changes in latest devkitppc versions where that constant definition was moved in another include file, thus breaking code developed with an older version of the toolchain.

    A quick google search indicates that other people encountered the same issue when trying to compile other 'old' Wii projects with latest toolchain and the solution seems to be adding #include <sys/param.h> in the code. Try adding it to osd.h in /gx directory and tell me if it compiles.

  2. Log in to comment