- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Getting error " error #2029: expected an expre...
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
10-17-2007 12:58 AM
10-17-2007 12:58 AM
Getting error " error #2029: expected an expression" while compiling C code for va_arg
while i m compiling my program i keep getting this kind of error:
======================
line 1662: error #2029: expected an expression
strcpy(ch,va_arg(ap,char *));
======================
Pointing out char * as the trouble parameters.
I have made a little program using va_arg and it builds just fine.
So I m searching why i have this problem since this code run for years now on HP-UX
We just migrate to Itanuim, with the evaluation package :
B9007AAEVAL C.11.31.03.EVAL2 HP C/aC++ Developer's Bundle for Evaluation License
Do someone have an idea about this problem ?
Syntax for build :
cc -c -I. -I/home/proj/inc appli.c -o appli.o
By advance.
Thank you
- Tags:
- va_arg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2007 02:47 AM
10-17-2007 02:47 AM
Re: Getting error " error #2029: expected an expression" while compiling C code for va_arg
const char *ch;
char *ch2;
ch2 = va_arg(ap, char *);
strcpy(ch, (const char *)ch2);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2007 04:08 AM
10-17-2007 04:08 AM
Re: Getting error " error #2029: expected an expression" while compiling C code for va_arg
in fact i already have this kind of error.
=============
va_list ap;
-------
line 1268: error #2029: expected an expression
va_arg(ap, char);
^
=============
(also I have tried your modification to be sure)
In fact... an internal procedure from our software added the line
#define _PA_RISC2_0
before generating the final .c file....
So, not a bug , just a definition that do not have to be here.....
Thank you for you answer
And sorry for having opening such a case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2007 04:10 AM
10-17-2007 04:10 AM
Re: Getting error " error #2029: expected an expression" while compiling C code for va_arg
All is ok now.
Thank you for your help !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2007 05:24 PM
10-17-2007 05:24 PM
Re: Getting error " error #2029: expected an expression" while compiling C code for va_arg
Yes, that would change