473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

long follow by long is illegal

unsigned long long int __a; /* Factor in congruential formula. */

C:\C TESTEN\TestNRand48\Main.cpp(29) : error C2632: 'long' followed by
'long' is illegal

???
Nov 14 '05 #1
6 9518
Skybuck Flying <no****@hotmail.com> wrote:
unsigned long long int __a; /* Factor in congruential formula. */ C:\C TESTEN\TestNRand48\Main.cpp(29) : error C2632: 'long' followed by
'long' is illegal


Obviously, your compiler doesn't know anything about the "long long"
type, introduced by the C99 standard (but already supported by some
compilers before that time). Get a different compiler or rewrite your
code to work without "long long" types.

Regards, Jens
--
\ Jens Thoms Toerring ___ Je***********@physik.fu-berlin.de
\__________________________ http://www.toerring.de
Nov 14 '05 #2
The stuff should be compiled using gcc or so, not visual cpp, :(

"Skybuck Flying" <no****@hotmail.com>
wrotes:cc**********@news2.tilbu1.nb.home.nl...
unsigned long long int __a; /* Factor in congruential formula. */

C:\C TESTEN\TestNRand48\Main.cpp(29) : error C2632: 'long' followed by
'long' is illegal

???

Nov 14 '05 #3
"Skybuck Flying" <no****@hotmail.com> wrote:
unsigned long long int __a; /* Factor in congruential formula. */

C:\C TESTEN\TestNRand48\Main.cpp(29) : error C2632: 'long' followed by ^^^
Ahem.
'long' is illegal


C++ is off-topic here.

Even so, you could encounter this error using a C compiler; (unsigned)
long long is a C99 type, and doesn't exist in the C89 Standard. From a
compiler that doesn't support C99 yet, I would expect an error like the
above, certainly when invoked in strict ISO mode.

Richard
Nov 14 '05 #4
In 'comp.lang.c', "Skybuck Flying" <no****@hotmail.com> wrote:
unsigned long long int __a; /* Factor in congruential formula. */

C:\C TESTEN\TestNRand48\Main.cpp(29) : error C2632: 'long' followed by
'long' is illegal


It's illegal in C90. It's legel in C99. Get a newer compiler.

--
-ed- get my email here: http://marreduspam.com/ad672570
The C-language FAQ: http://www.eskimo.com/~scs/C-faq/top.html
C-reference: http://www.dinkumware.com/manuals/reader.aspx?lib=c99
FAQ de f.c.l.c : http://www.isty-info.uvsq.fr/~rumeau/fclc/
Nov 14 '05 #5
In <cc**********@news.yaako.com> "Êþº¾" <he********@yahoo.com.cn> writes:
The stuff should be compiled using gcc or so, not visual cpp, :(
And, if you invoke gcc in conforming mode, it will tell you that:

warning: ISO C90 does not support `long long'

Dan
"Skybuck Flying" <no****@hotmail.com>
wrotes:cc**********@news2.tilbu1.nb.home.nl...
unsigned long long int __a; /* Factor in congruential formula. */

C:\C TESTEN\TestNRand48\Main.cpp(29) : error C2632: 'long' followed by
'long' is illegal

???

--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #6
Groovy hepcat Skybuck Flying was jivin' on Wed, 7 Jul 2004 15:04:14
+0200 in comp.lang.c.
long follow by long is illegal's a cool scene! Dig it!
unsigned long long int __a; /* Factor in congruential formula. */


In addition to what others have told you, there's another problem
here. Identifiers beginning with two underscores are reserved for the
implementation in all circumstances. You are invading implementation
name space and risking undefined behaviour.

--

Dig the even newer still, yet more improved, sig!

http://alphalink.com.au/~phaywood/
"Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
I know it's not "technically correct" English; but since when was rock & roll "technically correct"?
Nov 14 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

76
by: Zenobia | last post by:
How do I display character 151 (long hyphen) in XHTML (utf-8) ? Is there another character that will substitute? The W3C validation parser, http://validator.w3.org, tells me that this character...
14
by: deko | last post by:
Is there a way to check user input for illegal characters? For example, a user enters something into a text box and clicks OK. At that point I'd like to run code such as this: illegal =...
4
by: Lingyun Yang | last post by:
*** post for FREE via your newsreader at post.newsfeed.com *** Dear all, I have a file it's binary data viewed in UltraEdit is EF BB BF 0D 0A 3C ....... I want to read them into a int or long...
11
by: Ken Durden | last post by:
I am in search of a comprehensive methodology of using these two object cleanup approaches to get rid of a number of bugs, unpleasantries, and cleanup-ordering issues we currently have in our...
0
by: Tim Sharrock | last post by:
We have hit an internal compiler error when processing a very long array initialiser (for a lookup table). Most of the compiler versions we tried compiled the code successfully, but very slowly...
5
by: lcw1964 | last post by:
Greetings again, I will burden the group with yet another tenderfoot question, but since conscientious googling hasn't yield a lucid answer I thought I would risk the shortcut of asking here...
73
by: Yevgen Muntyan | last post by:
Hey, I was reading C99 Rationale, and it has the following two QUIET CHANGE paragraphs: 6.5.3.4: "With the introduction of the long long and extended integer types, the sizeof operator may...
9
by: vadivel.ks | last post by:
hi, My code having unsigned long long int64_t; like that.. compile error message is long followed by long is illegal, what is the reason for it?
2
by: Kamaria | last post by:
I wrote this program to calculate the income tax of a user depending on whether or not they were married: import javax.swing.JOptionPane; public class Income_Tax { public static void main...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.