Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2009 05:27 PM
08-04-2009 05:27 PM
Strtoll
I need that function for compiling some code which used 11.11
uname -a
HP-UX dev5-hp B.11.23 U 9000/800 151951587
I am not definitely running under Tru64 Unix
- Tags:
- strtoll
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2009 06:26 PM
08-04-2009 06:26 PM
Re: Strtoll
> files from aC+ compiler.
Why were you looking?
> [...] 11.11 [...]
> [...] B.11.23 [...]
Huh?
> I am not definitely running under Tru64
> Unix
Yeah, the "HP-UX" pretty well revealed that.
It seems to exist in 11.23 (though not in
11.11):
http://docs.hp.com/en/B2355-60103/strtol.3C.html
If you insist on remaining in the stone age,
then I'd expect that a Web search for, say,
strtoll.c
would locate some relatively unencumbered
source code which you could steal.
Portable code tends to deal with this kind of
thing at the "./configure" stage. My psychic
powers are too weak to tell me what you're
doing, so it's hard to offer much specific
advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2009 07:11 PM - edited 08-28-2011 09:42 PM
08-04-2009 07:11 PM - edited 08-28-2011 09:42 PM
Re: strtoll
>I could not find strtoll in my include files from aC++ compiler.
This C99 function isn't there until 11.23 and only because I requested it.
On 11.11 you can use and strtoimax but you'll need to change for 11.23.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2009 04:17 PM
08-05-2009 04:17 PM
Re: Strtoll
I am currently running under 11.23 . But the compiler I am using is aC++ compiler.
So my code should be atleast supported on 11.23
lets say test.cc is trying to use strtoull / strtoll
I should be able to to compile it with
aCC -c test.cc
where as I got following error
"test.cc", line 20 # Undeclared variable 'strtoull'. Perhaps 'strtoul' as in "unsigned long strtoul(const char *,char **,int)" ["/usr/include/stdlib.h", line 169] was intended.
Is there any specific option I need to provide for compiler to use this function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2009 04:53 PM
08-05-2009 04:53 PM
Re: Strtoll
That's fair. I was confused by the question.
> I am currently running under 11.23 .
So, why did you bring "11.11" into this?
> lets say test.cc is trying to use strtoull
> / strtoll
Say anything you want. My psychic powers are
too weak to let me see what's in your
"test.cc" without some help from you. If
it's not a State Secret, perhaps you could
show us all what's in your "test.cc"?
"man strtoll". Did you:
#include
as suggested there? I know nothing, but I'd
guess that if the compiler had seen
like:
Perhaps 'strtoul' as in "unsigned long
strtoul(const char *,char **,int)"
["/usr/include/stdlib.h", line 169] was
intended.
But why should I need to guess?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2009 02:17 AM - edited 08-28-2011 09:48 PM
08-06-2009 02:17 AM - edited 08-28-2011 09:48 PM
Re: strtoll
>I am quite confused about replied.
Oops, I assumed you wanted strtoll on 11.11 and it worked for you on 11.23.
>Is there any specific option I need to provide for compiler to use this function
You need to use -ext.
>Steven: "man strtoll"
Unfortunately the man page just says "C99" with no details on what magic is needed to call it.
>Did you: #include <stdlib.h> as suggested there?
Of course, otherwise the compiler wouldn't have mentioned <stdlib.h>. The only advanced AI technology in the the compiler is to look for a symbol close to the undefined variable, not to guess where it should be.
The aC++ suggestion was that it found strtoul in stdlib.h but not strtoull.