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

error: ‘DOMAIN’ undeclared (first use in this function) #11

Closed
leckylao opened this issue Nov 5, 2020 · 3 comments
Closed

error: ‘DOMAIN’ undeclared (first use in this function) #11

leckylao opened this issue Nov 5, 2020 · 3 comments

Comments

@leckylao
Copy link

leckylao commented Nov 5, 2020

Hi Sam,

I am trying to build micropolis and play with the game. Firstly tried https://github.com/SimHacker/micropolis but can't install pycairo due to python2.7 sunset. And when running make on gym_city/envs/micropolis I have the following errors. Any ideas?

gcc -O3 -DIS_LINUX  -I../../tcl  -DTCL_HAVE_SETLINEBUF -DTCL_32_BIT_RANDOM -DTCL_POSIX_SIG -DTCL_TM_GMTOFF   -c -o tclxfmat.o tclxfmat.c
tclxfmat.c: In function ‘ReturnFPMathError’:
tclxfmat.c:125:13: error: ‘DOMAIN’ undeclared (first use in this function)
  125 |        case DOMAIN:
      |             ^~~~~~
tclxfmat.c:125:13: note: each undeclared identifier is reported only once for each function it appears in
tclxfmat.c:128:13: error: ‘SING’ undeclared (first use in this function)
  128 |        case SING:
      |             ^~~~
tclxfmat.c:131:13: error: ‘OVERFLOW’ undeclared (first use in this function); did you mean ‘EOVERFLOW’?
  131 |        case OVERFLOW:
      |             ^~~~~~~~
      |             EOVERFLOW
tclxfmat.c:134:13: error: ‘UNDERFLOW’ undeclared (first use in this function); did you mean ‘EOVERFLOW’?
  134 |        case UNDERFLOW:
      |             ^~~~~~~~~
      |             EOVERFLOW
tclxfmat.c:137:13: error: ‘TLOSS’ undeclared (first use in this function)
  137 |        case TLOSS:
      |             ^~~~~
tclxfmat.c:138:13: error: ‘PLOSS’ undeclared (first use in this function)
  138 |        case PLOSS:
      |             ^~~~~
@smearle
Copy link
Owner

smearle commented Nov 18, 2020

Hm, I haven't seen this before.

It's true that I had to port the original micropolis (which you link above) over to python3 to get it to compile on my machine. Those changes are reflected in the version of micropolis contained in this repository. Simple changes to swig/makefiles, and some replaced Gtk functions.

Is this the full traceback? If not, include it and I'll see if I can't make some sense of it.

PS sorry for the delay, I must have missed this earlier.

@leckylao
Copy link
Author

Thanks @smearle for the reply. It's ok I have played the game using the java version. Just to double check is the python version the same as the java version?

@smearle
Copy link
Owner

smearle commented Nov 25, 2020

Oh, you literally just wanted to play the game?
No, I have no idea.
Enjoy!

@smearle smearle closed this as completed Nov 25, 2020
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