- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: aCC compile errors with size_t
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
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
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
06-04-2009 08:19 AM
06-04-2009 08:19 AM
aCC compile errors with size_t
I am trying to set up the compile for a few cpp files, within a set of existing C files using aCC. I got it to compile on HP Itanium, but on the RISC, I am getting the following errors. It looks like "size_t" is not defined, is there a way to get around this ? Or am I missing something here ?
Thank you very much for your help.
aCC -DHAVE_CONFIG_H -I. -I. -I../../src/engine -I../../src -I../../src/engine -AA +DA2.0W -c tokenMap.cpp -DPIC -o .libs/tokenMap.o
Error 422: "/usr/include/sys/pthread.h", line 452 # 'size_t' is used as a
type, but has not been defined as a type. Perhaps you meant 'bsize_t' as
in "typedef unsigned long bsize_t" ["/usr/include/sys/types.h", line 191].
size_t stk_stacksize;
^^^^^^
- Tags:
- include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2009 02:04 PM
06-04-2009 02:04 PM
Re: aCC compile errors with size_t
declared somewhere in the usual system header
files. I don't have an aCC on my PA-RISC
system, but I do see size_t in these:
/usr/include/sys/_size_t.h
/usr/include/sys/types.h
You might try adding a "-E" to the compiler
command line, to try to see what's killing
the normal declaration of size_t.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2009 05:28 PM - edited 09-03-2011 05:17 PM
06-04-2009 05:28 PM - edited 09-03-2011 05:17 PM
Re: aCC compile errors with size_t
+DA2.0W should be replaced by +DD64.
std::size_t should be defined in <cstddef> and size_t in <stddef.h>. But <pthread.h> should be including these.
>Steven: You might try adding a "-E" to the compiler command line
Yes, -E -.i. There is also -H to see the include hierarchy.
Though if an evil macro is messing this up, you may have to look harder.
- Tags:
- bad html
- evil macro