Hi Everyone ,
I am having issue with istream declaration. I am new to C programming.
can any one please help me ?
I am getting error in getNameValuePair.h and getNameValuePair.C code.
Here below the compilation result .
xlCcore -q64 -g -v -D_RWCONFIG=8s -D_RWSTD_NO_DEPRECATED_C_HEADERS=0 -D_RWSTD_NO_FORCE_RELATIVE_PATHS=0 -D_RWSTD_USE_USR_INCLUDE_HEADERS=0 -qnotempinc -qeh=v6 -qarch=auto -I/appl/dev/include -I/appl/dev/include/ansi -I/appl/dev -I/home/prod/itamac/iprs/iprs3.5/include -I/opt/oracle/product/10.2.0/precomp/public -I/usr/include -v -O -qsuppress=1500-029 -qidirfirst -qnotempinc -qcpp_stdinc=/appl/dev/include:/appl/dev/include/ansi:/appl/dev/include/leo:/usr/include -c getNameValuePair.C
exec: export(export,XL_CONFIG=/etc/vac.cfglCcore,NULL)
exec: export(export,XL_XLCMP_PATH=/usr/vac:/usr/vacpp,NULL)
exec: export(export,XL_COMPILER=xlc++,NULL)
exec: export(export,XL_ASMOBJFILES=/tmp/xlcAS00Qhid,NULL)
exec: /usr/vacpp/exe/xlCentry(/usr/vacpp/exe/xlCentry,-D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-D_IBMR2,-D_POWER,-D_RWCONFIG=8s,-D_RWSTD_NO_DEPRECATED_C_HEADERS=0,-D_RWSTD_NO_FORCE_RELATIVE_PATHS=0,-D_RWSTD_USE_USR_INCLUDE_HEADERS=0,-I/appl/dev/include,-I/appl/dev/include/ansi,-I/appl/dev,-I/home/prod/itamac/iprs/iprs3.5/include,-I/opt/oracle/product/10.2.0/precomp/public,-I/usr/include,-qosvar=aix.5.3,-qalias=ansi,-q64,-qlargetype,-g,-qnotempinc,-qeh=v6,-qarch=pwr5x,-O,-qsuppress=1500-029,-qidirfirst,-qnotempinc,-qcpp_stdinc=/appl/dev/include:/appl/dev/include/ansi:/appl/dev/include/leo:/usr/include,-qasm_as=/bin/as,-ogetNameValuePair.o,getNameValuePair.C,/tmp/xlcW000Qhia,/tmp/xlcW109Qhib,/dev/null,getNameValuePair.lst,/dev/null,/tmp/xlcW200Qhic,NULL)
"getNameValuePair.h", line 19.9: 1540-0040 (S) The text "&" is unexpected. "istream" may be undeclared or ambiguous.
"getNameValuePair.C", line 43.9: 1540-0040 (S) The text "&" is unexpected. "istream" may be undeclared or ambiguous.
unlink: /tmp/xlcAS00Qhid
unlink: /tmp/xlcW000Qhia
unlink: /tmp/xlcW109Qhib
unlink: /tmp/xlcW200Qhic
make: 1254-004 The error code from the last command is 1.
Stop.
Here below getNameValuePair.C header files declaration part
//#pragma VERSIONID "@(#)getNameValuePair.C 1.2"
// System Header Files
#include
#include
// #include
// Unit Header Files
#include "getNameValuePair.h"
//istream &
istream &getNameValuePair(string &name, // first token found on input line
string &value, // second token found on input line
istream (&input)) // stream from which to extract line
Here below content of getNameValuePair.h
// Interface to utility function to help parse a file of name-value pairs.
// Lines are broken into tokens separated by white space.
// Lines without tokens are ignored.
// Lines whose initial token begins with "#" are ignored.
// The first token on a line is assigned to name.
// If there is a second token, it is assigned to value.
// Any remaining tokens on the line are discarded.
#include
//#include
istream &getNameValuePair(string &name, string &value, istream &input = cin);
Can you please anyone help me out for this issue ?
we create service request to RW vendor about this compiler problem. they told us to change header file declaration part like
after we have done the changes also, it gives same error .
can any one tell me what should need to change in above code ?
Thanks is advance
Casting Decimals in Oracle
This code worked as a query in DB2, but I am not sure what the syntax is for casting decimals in Oracle:
fwrite error
Hi All,Does anyone know what is causing the error in this code?Code: <?$errorLog_FilePath = "error_log.txt";$handle = @fopen($errorLog_FilePath,'a+');$strError =
HTML Viewer HIDE scrollbar
How can I disable scrollbars in a HTML Viewer control? I can't hide them. Even i have enough space but i am getting this grey inactive scrollbar....
Line break?
Hi, I'm new to the forum and new to php. I'm not sure if I'm using the correct terminology so here it goes. I've created a page with multiple forms that when submitted get emailed to a certain
What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is going wrong. It's a set of filters for events. The filter marked "type" (category) works
Mysql query, two times?
Hello to all,I'm new to php coding and i like it alot. I need help with some noob stuff.1. Having problem with mysql query after submiting HTML form. It's allways execuding two times, that way i have
Content-Disposition: attachment; filename=... not working as i thought it should
taken the following code from the php.net site the script is not working.what is not happening is the file does not show and also the file download does not show the correct file name it seems to have
What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a nutshell, I have two pages, 1) is just a form another contains php with answer and if and else
Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about because the control being searched for is nested within a container other than the webform.I came
Nested (echoed) php running wrong script
Got a problem with a php website I'm creating.In a nutshell, the first page is entirely html and calls a php script to process an uploaded file and some form fields using POST. After validating the