[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error inet.h library




Hi Till,

I have including the libraries that you named in your e-mail and also I'm using extern "C" as you showed me. 
I'm programming in C++, so I don't know if the version of rtems 4.7 changed the way to use libraries for C++ or something like that.

Do you know about this?

Thanks for your help !! 







----------------------------------------
> Date: Wed, 9 May 2007 16:07:03 -0700
> From: strauman at slac.stanford.edu
> To: vivianpaolag at hotmail.com
> CC: rtems-users at rtems.org
> Subject: Re: error inet.h library
> 
> Vivian Paola Guerrero Rodriguez wrote:
> >
> > Hi, 
> >
> > I'm migrating from rtems 4.6 to 4.7.1. When I compile my program I get two errors about the inet.h library:
> > program.cc:222 error: inetntoa  was not declared in this scope
> > program.cc:111 error: inet_aton was not declared in this scope
> >   
> Please provide more info. I just tried to compile a very simple stub:
> 
> #include 
> #include 
> #include 
> #include 
> 
> extern "C" char* inet_ntoa_wrap(struct in_addr x)
> {
>         return inet_ntoa(x);
> }
> 
> but this compiles fine under 4.6.5 and 4.7 for me
> 
> T.
> 
> > I'm including the library that contents these funtions :  #include
> >                                                                                #include
> >
> >
> > So I don't understand what is the reason for these errors, could be possible the directory of this library had been changed for the new version fo rtems ?
> >
> > Thanks a lot for your help !
> >
> > _________________________________________________________________
> > See what you?re getting into?before you go there.
> > http://newlivehotmail.com/?ocid=TXT_TAGWL_migration_HM_viral_preview_0507
> > _______________________________________________
> > rtems-users mailing list
> > rtems-users at rtems.com
> > http://rtems.rtems.org/mailman/listinfo/rtems-users
> >   
> 
> 

_________________________________________________________________
See what you?re getting into?before you go there.
http://newlivehotmail.com/?ocid=TXT_TAGWL_migration_HM_viral_preview_0507