473,387 Members | 1,502 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.

intptr_t standard?

Isn't intptr_t part of the latest ISO C++?
It is part of the C99 standard but C++? Has any new standard for C++
after C++ 2003 which is almost same as C++98 published?
Which are the compilers that supports it completely?

on gcc (GCC) 3.3.3 (SuSE Linux) I dont get any error when using
intptr_t even after specifying -std=c89

http://www.informit.com/guides/conte...eqNum=223&rl=1

Is any new standard for C published after C99?

Aug 7 '06 #1
2 10471
ni*****@gmail.com said:

[OT stuff snipped]
on gcc (GCC) 3.3.3 (SuSE Linux) I dont get any error when using
intptr_t even after specifying -std=c89
A diagnostic is required - and gcc gives one when invoked in conforming
mode:

foo.c:8: `intptr_t' undeclared (first use in this function)
Is any new standard for C published after C99?
Not yet. Give them time.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 7 '06 #2
ni*****@gmail.com writes:
Isn't intptr_t part of the latest ISO C++?
It is part of the C99 standard but C++? Has any new standard for C++
after C++ 2003 which is almost same as C++98 published?
Which are the compilers that supports it completely?
We don't know. This is comp.lang.c. comp.lang.c++ is down the hall,
third door on the left, just past the water cooler.
on gcc (GCC) 3.3.3 (SuSE Linux) I dont get any error when using
intptr_t even after specifying -std=c89

http://www.informit.com/guides/conte...eqNum=223&rl=1
intptr_t is defined in <stdint.h>, which is a new standard header in
C99. As far as C89/C90 is concerned, <stdint.his a non-standard
header; #including it and using declarations from it doesn't warrant a
warning any more than using any other non-standard header.
Is any new standard for C published after C99?
There's not a full standard, but there have been two Technical
Corrigenda. A version of the C99 standard with TC1 and TC2 merged
into it is freely available as n1124.pdf (Google it).

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Aug 7 '06 #3

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

Similar topics

6
by: John Bentley | last post by:
John Bentley writes at this level: If we think about our savings accounts then division never comes in (as far as I can see). We deposit and withdraw exact amounts most of the time. Occasionaly...
3
by: Edward Diener | last post by:
I am getting the above warning when compiling a line in a file which assigns an 'intptr_t' result to a 'long' variable. I do not see how intptr_t can possibly be larger than a long unless intptr_t...
5
by: king | last post by:
Isn't intptr_t part of the latest ISO C++? It is part of the C99 standard but C++? Has any new standard for C++ after C++ 2003 which is almost same as C++98 published? Which are the compilers that...
1
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
2
by: Richard Tobin | last post by:
Is the following program legal? (I think it is, though it relies on the existence of intptr_t.) #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> int...
13
by: softwaredoug | last post by:
I can't see to easily find this on google or in a newsgroup Is there a standard function/macro/whatever you can call and determine the distance in a C program how deep one is in the C call stack...
31
by: Francine.Neary | last post by:
One interesting thing to come out of the recent "Alignment" thread is that it is impossible to write a portable replacement for malloc in "user space" (not sure what the right term is - I mean an...
3
by: xmllmx | last post by:
6.2.5.6 says: "For each of the signed integer types, there is a corresponding (but different) unsigned integer type (designated with the keyword unsigned) that uses the same amount of storage...
31
by: Chris Thomasson | last post by:
How many C compilers provide extensions which allow for a standard implementation of the following hack? ____________________________________________________________________ #include <stdio.h> ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.