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

Compile error on Mac OS X: 'INT64_MAX' not declared #1357

Closed
DorpsGek opened this issue Oct 20, 2007 · 2 comments
Closed

Compile error on Mac OS X: 'INT64_MAX' not declared #1357

DorpsGek opened this issue Oct 20, 2007 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

mallmonkey opened the ticket and wrote:

The latest trunk (r11315) no longer compiles on Mac OS X (I've tested both on Intel and on PPC):

[..]
[SRC] Compiling music/null_m.cpp
[SRC] Compiling music/qtmidi.cpp
/Users/neil/dev/openttd/trunk/src/music/../openttd.h:73: error: 'INT64_MAX' was not declared in this scope
/Users/neil/dev/openttd/trunk/src/music/../openttd.h:73: error: 'INT64_MIN' was not declared in this scope
/Users/neil/dev/openttd/trunk/src/music/../openttd.h:73: error: template argument 2 is invalid
/Users/neil/dev/openttd/trunk/src/music/../openttd.h:73: error: template argument 3 is invalid
/Users/neil/dev/openttd/trunk/src/music/../openttd.h:73: error: invalid type in declaration before ';' token
make[1]: *** [music/qtmidi.o] Error 1
make: *** [all] Error 2

I've checked /usr/include/stdint.h on my systems, and it does define INT64_MAX (although I'm not 100% sure that's the one that's used, but 22 of the 24 stdint.h's on my (PPC) system include a define for INT64_MAX), so I'm not sure what goes wrong (stdafx.h should include <stdint.h> I think).

What's weird (to me anyway) is that economy.cpp (which also uses INT64_MAX) does compile. I've checked qtmidi.cpp but stdafx.h is included there (before openttd.h is included).

r11271 whas the latest revision I tried to compile, and that worked fine, so this problem was probably introduced after that.

Reported version: trunk
Operating system: Mac OS X


This issue was imported from FlySpray: https://bugs.openttd.org/task/1357
@DorpsGek
Copy link
Member Author

Rubidium wrote:

It's actually declared, but undeclared by an OSX header, or at least it looks like that.

You can configure OTTD without midi support and then it will compile.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1357#comment2480

@DorpsGek
Copy link
Member Author

Bjarni closed the ticket.

Reason for closing: Fixed

r11325
this is not a midi only issue. It happened to sound and cocoa video as well.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1357

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant