- non-aggregate type `long unsigned int' : error
- Posted by abhijeet on June 15th, 2004
Hi al gurus,
I am comlining a program on solaris using gcc and the damm thing just
fails here.
I tried to search on net too about this but whatever is posted does
not make sense. As the error says " parse error before `.' token" but
there is no "." anywhere near that line.What to do?? Regards
Abhi
HttpUserAgent.cpp: In member function `void
textconf::HttpUserAgent::service(textconf::HttpReq uest&,
textconf::HttpResponse&)':
HttpUserAgent.cpp:53: parse error before `.' token
HttpUserAgent.cpp:55: request for member `S_addr' in `S_un', which is
of
non-aggregate type `long unsigned int'
HttpUserAgent.cpp:66: request for member `S_addr' in `S_un', which is
of
non-aggregate type `long unsigned int'
HttpUserAgent.cpp: In member function `void
textconf::HttpUserAgent::_parseHttpResponse(textco nf::HttpResponse&,
int)':
HttpUserAgent.cpp:372: warning: comparison between signed and unsigned
integer
expressions
- Posted by Chris Dollin on June 15th, 2004
abhijeet wrote:
Show us the body of HttpUserAgent::service. (You claim there's no
dot there - I expect to see one. Might there be macros?)
--
Chris "electric hedgehog" Dollin
C FAQs at: http://www.faqs.org/faqs/by-newsgrou...mp.lang.c.html
C welcome: http://www.angelfire.com/ms3/bchambl...me_to_clc.html
- Posted by Minti on June 15th, 2004
abhinic@rediffmail.com (abhijeet) wrote in message news:<a7f9c31c.0406150244.6221d631@posting.google. com>...
My crystal ball says that you need to check the type with with S_addr
has been declared.
--
Imanpreet Singh Arora
- Posted by zombie on June 17th, 2004
hi all
unsigned long s_addr; // binary network-byte order host address;
if ((host=gethostbyname(request.getHost())) != NULL) {
s_addr = *((unsigned long*) host->h_addr_list[0]);
these lines give the error in fact the error is shown on line 53 and 55
Chris Dollin <kers@hpl.hp.com> wrote in message news:<campv9$gr4$1@murdoch.hpl.hp.com>...
- Posted by zombie on June 17th, 2004
hi all
unsigned long s_addr; // binary network-byte order host address;
if ((host=gethostbyname(request.getHost())) != NULL) {
s_addr = *((unsigned long*) host->h_addr_list[0]);
these lines give the error in fact the error is shown on line first and third.
Chris Dollin <kers@hpl.hp.com> wrote in message news:<campv9$gr4$1@murdoch.hpl.hp.com>...