0

Following this question, I'm trying to compile this code on macOS. I ran

/System/Volumes/Data/usr/local/Cellar/qt/5.14.1/bin/qmake

inside the build_XX folder successfully, and then make. However, I get the compiling error:

../src/gpsim/protocol.cc:79:8: error: 'long long type-name' is invalid
  uint long long i = ascii2uint64(buffer, digits);
       ^
1 error generated.
make: *** [build/release/protocol.o] Error 1

as suggested here, I added

#ifdef __APPLE__
#include <sys/types.h>
#endif // __APPLE__

at the top of the protocol.cc file with no avail. I would appreciate it if you could help me understand what is the problem and how I can solve it. Thanks for your support in advance.

1 Answer 1

1

There's no such type as uint long long.

There is long long and unsigned long long.

Qt also provides qlonglong.

Sign up to request clarification or add additional context in comments.

7 Comments

so this is a bug, with any other compiler as well? and has nothing to do with macOS or clang for that matter?
OP mentioned Qt. Qt does in fact provide uint. Hence, I'm a bit puzzled why uint long long shouldn't work. Of course, I didn't dig deeper. A missing Qt header might explain...
@Foad As far as I know, yes.
it worked, but I will be waiting for @JesperJuhl to see why Qt doesn't work properly here.
@Foad Too funny that I noticed two last commits in the linked github repo with something like "long long fixed" which appeared just 13 minutes (!) before you sent your question... ;-)
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.