|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
LL/ULL are *not* supported in MSVC, they're a GCC extension (which Clang also supports).
|
|
|
|
Joined: Jul 2007
Posts: 4,625
Very Senior Member
|
Very Senior Member
Joined: Jul 2007
Posts: 4,625 |
r20728 Just for info ... Compiling src/emu/cpu/es5510/es5510.c... src/emu/cpu/es5510/es5510.c:140: error: expected unqualified-id before '<<' token src/emu/cpu/es5510/es5510.c:143: error: expected unqualified-id before '==' token
src/emu/cpu/es5510/es5510.c: In function 'INT64 SC64(INT64)': src/emu/cpu/es5510/es5510.c:145: error: redefinition of 'INT64 SC64(INT64)' src/emu/cpu/es5510/es5510.c:142: error: 'INT64 SC64(INT64)' previously defined here src/emu/cpu/es5510/es5510.c: At global scope: src/emu/cpu/es5510/es5510.c:146: error: expected unqualified-id before '>>' token make: *** [obj/windows/emu/cpu/es5510/es5510.o] Error 1 Ren�s fix was working for me before.
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
You hit a merge violation. Delete the files and re-get from SVN.
|
|
|
|
Joined: Jul 2007
Posts: 4,625
Very Senior Member
|
Very Senior Member
Joined: Jul 2007
Posts: 4,625 |
You hit a merge violation. Delete the files and re-get from SVN. src\emu\cpu\ folder deleted and re-downloaded from SVN. It seems to work now. Thanks to take care about my problem.
|
|
|
|
Joined: Feb 2004
Posts: 2,597 Likes: 300
Very Senior Member
|
Very Senior Member
Joined: Feb 2004
Posts: 2,597 Likes: 300 |
Huh? I definitely use ULL/LL suffixes with MSVC at work and had no problems.
|
|
|
|
Joined: Aug 2011
Posts: 499
Senior Member
|
Senior Member
Joined: Aug 2011
Posts: 499 |
I'm getting a compile error on the latest svn: r22134 using Windows 7. I'm also doing a clean compile here.
Compiling src/mess/machine/md_slot.c... Compiling src/mess/machine/md_rom.c... Compiling src/mess/machine/md_sk.c... src/mess/machine/md_slot.c: In member function 'void base_md_cart_slot_device::f ile_logging(UINT8*, UINT32, UINT32)': src/mess/machine/md_slot.c:999:107: error: unknown conversion type character 'l' in format [-Werror=format] src/mess/machine/md_slot.c:999:107: error: too many arguments for format [-Werro r=format-extra-args] src/mess/machine/md_slot.c:1013:33: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] src/mess/machine/md_slot.c:1017:35: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] src/mess/machine/md_slot.c:1019:39: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] src/mess/machine/md_slot.c:1021:39: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] src/mess/machine/md_slot.c:1023:32: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] src/mess/machine/md_slot.c:1029:28: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] src/mess/machine/md_slot.c:1048:31: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] src/mess/machine/md_slot.c:1050:30: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] src/mess/machine/md_slot.c:1053:33: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses] Compiling src/mess/machine/md_eeprom.c... cc1plus.exe: all warnings being treated as errors make: *** [obj/windows64/mess/machine/md_slot.o] Error 1 make: *** Waiting for unfinished jobs....
|
|
|
|
Joined: Jan 2006
Posts: 3,691
Very Senior Member
|
Very Senior Member
Joined: Jan 2006
Posts: 3,691 |
sorry, Apple GCC included with OSX 10.6 did not complain about those
|
|
|
|
Joined: Aug 2011
Posts: 499
Senior Member
|
Senior Member
Joined: Aug 2011
Posts: 499 |
No worries, it's all fixed now
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
In fairness to GCC < 4.7, the "suggest parens" warning was completely spurious in that case because it would give the right results going in either order. The %llx not being portable thing is important to know, however
|
|
|
|
Joined: Jan 2006
Posts: 3,691
Very Senior Member
|
Very Senior Member
Joined: Jan 2006
Posts: 3,691 |
I was pretty sure there was a more correct way to print UINT64, but I forgot Now I took a note for next time I need it
|
|
|
2 members (Kale, 1 invisible),
233
guests, and
1
robot. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,320
Posts121,923
Members5,074
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|
|