Previous Thread
Next Thread
Print Thread
Page 11 of 43 1 2 9 10 11 12 13 42 43
Joined: Mar 2001
Posts: 16,919
Likes: 57
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,919
Likes: 57
LL/ULL are *not* supported in MSVC, they're a GCC extension (which Clang also supports).

Joined: Jul 2007
Posts: 4,625
A
Very Senior Member
Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
r20728

Just for info ...

Quote:
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: 16,919
Likes: 57
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,919
Likes: 57
You hit a merge violation. Delete the files and re-get from SVN.

Joined: Jul 2007
Posts: 4,625
A
Very Senior Member
Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
Originally Posted By R. Belmont
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. smile

Joined: Feb 2004
Posts: 2,380
Likes: 98
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,380
Likes: 98
Huh? I definitely use ULL/LL suffixes with MSVC at work and had no problems.

Joined: Aug 2011
Posts: 499
M
Senior Member
Offline
Senior Member
M
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,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
sorry, Apple GCC included with OSX 10.6 did not complain about those frown

Joined: Aug 2011
Posts: 499
M
Senior Member
Offline
Senior Member
M
Joined: Aug 2011
Posts: 499
No worries, it's all fixed now smile

Joined: Mar 2001
Posts: 16,919
Likes: 57
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,919
Likes: 57
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 smile

Joined: Jan 2006
Posts: 3,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
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

Page 11 of 43 1 2 9 10 11 12 13 42 43

Link Copied to Clipboard
Who's Online Now
2 members (Duke, 1 invisible), 23 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,100
Posts119,233
Members5,019
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com