Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if (!djFolderExists( DATA_DIR )) error #130

Open
sviscapi opened this issue Apr 11, 2021 · 1 comment
Open

if (!djFolderExists( DATA_DIR )) error #130

sviscapi opened this issue Apr 11, 2021 · 1 comment

Comments

@sviscapi
Copy link

Hi @davidjoffe :)

I'm trying to update my Pandora port of Dave Gnukem but I run in the following issue with GCC 9.3.0:

pandora:/media/Pandora/dev/dave_gnukem$ make -f Makefile.pandora
g++ -ffast-math -O3 -pipe -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -fsingle-precision-constant -fuse-ld=gold -fuse-linker-plugin -fsigned-char -g -Wall -DPANDORA -DHAVE_SOUND -DDATA_DIR=/mnt/utmp/davegnukem-magicsam/data -I/mnt/utmp/codeblocks/usr/include/SDL -c src/main.cpp -o src/main.o
src/main.cpp: In function ‘int DaveStartup(bool, bool, const std::map<std::__cxx11::basic_string, std::__cxx11::basic_string >&)’:
: error: expected primary-expression before ‘/’ token
src/main.cpp:297:23: note: in expansion of macro ‘DATA_DIR’
297 | if (!djFolderExists( DATA_DIR ))
| ^~~~~~~~
: error: ‘mnt’ was not declared in this scope; did you mean ‘int’?
src/main.cpp:297:23: note: in expansion of macro ‘DATA_DIR’
297 | if (!djFolderExists( DATA_DIR ))
| ^~~~~~~~
: error: ‘utmp’ was not declared in this scope; did you mean ‘tm’?
src/main.cpp:297:23: note: in expansion of macro ‘DATA_DIR’
297 | if (!djFolderExists( DATA_DIR ))
| ^~~~~~~~
: error: ‘davegnukem’ was not declared in this scope
src/main.cpp:297:23: note: in expansion of macro ‘DATA_DIR’
297 | if (!djFolderExists( DATA_DIR ))
| ^~~~~~~~
: error: ‘magicsam’ was not declared in this scope
: note: in definition of macro ‘DATA_DIR’
: error: ‘data’ was not declared in this scope
: note: in definition of macro ‘DATA_DIR’
: error: expected primary-expression before ‘/’ token
src/main.cpp:300:119: note: in expansion of macro ‘DATA_DIR’
300 | note this is in a separate repo - see the ReadMe.md for details.\n",DATA_DIR)
| ^~~~~~~~

Any idea what I could be doing wrong ?

Cheers, Sam

@davidjoffe
Copy link
Owner

Hi, is this still an issue? Not the latest changes to Dave Gnukem have some changes to the DATA_DIR setting and also we have upcoming SDL2 support so I expect the Pandora makefile may need further attention soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants