- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- "/usr/include/strings.h", line 52: error 1000: Une...
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
03-05-2008 05:56 AM
03-05-2008 05:56 AM
"/usr/include/strings.h", line 52: error 1000: Unexpected symbol: "(".
I am compiling with HPUX cc compiler using the following command:
----
/opt/ansic/bin/cc -c +DAportable +DS1.1 -DUSE_MOTIF -I./src -I./ tests/gui_test_motif.c -o tests/gui_test.o
----
but get the following error:
----
cc: "/usr/include/strings.h", line 52: error 1000: Unexpected symbol: "(".
cc: "/usr/include/strings.h", line 52: error 1573: Type of "size_t" is undefined due to an illegal declaration.
----
However, when I use the following line:
/opt/ansic/bin/cc -c -Aa +e -z +DA1.0 +DS1.1 -DUSE_MOTIF ...
it compiles and links ok. Can somebody help me in problem?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2008 11:17 AM
03-05-2008 11:17 AM
Re: "/usr/include/strings.h", line 52: error 1000: Unexpected symbol: "(".
Compiling what? Have you a small test case?
Compiler version? HP-UX version? Hardware
type?
Knowing nothing, it looks as if you're
declaring/defining size_t in an interesting
way. (Conditionally.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2008 07:22 PM - edited 09-17-2011 01:51 PM
03-05-2008 07:22 PM - edited 09-17-2011 01:51 PM
Re: "/usr/include/strings.h", line 52: error 1000: Unexpected symbol: "(".
>I am compiling with HP-UX cc
You need to mention which version of HP-UX and/or provide what is on line 52 of <strings.h>.
Also, why are you using a non-standard header <strings.h>? The correct ANSI C one is <string.h>.
You should NOT be using +DA1.0. The last OS release it was valid is 10.10. Also use +DS2.0.
>when I use the following line: cc -c -Aa +e
Chances are you are running into an evil macro.
Compile with -E and look at that line and you'll probably see that you have an evil macro expansion for bcopy.
Using -Aa makes <strings.h> the same as <string.h> so you don't have problems.
- Tags:
- evil macro