Question #180689 on rohc changed:
https://answers.launchpad.net/rohc/+question/180689
Status: Needs information => Open
qingbaibai gave more information on the question:
Hello,
I have solved the problem. I don't include netinet/in.h which defines the macro
ntohs() because netinet/in.h includes other library functions of linux system.
So I create a header file that includes the definition of ntohs(). I move the
definition of ntohs() from linux to windows and the problem is solved. Thank
you.
Regards,qingbaibai
> To: [email protected]
> From: [email protected]
> Date: Mon, 5 Dec 2011 18:20:52 +0000
> Subject: Re: [Rohc] [Question #180689]: about ntohs() on windows
>
> Question #180689 on rohc changed:
> https://answers.launchpad.net/rohc/+question/180689
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> Hello,
>
> I do not understand your problem clearly. I'll try to reformulate it in
> order to be sure to understand it fully.
>
> You are trying to build the ROHC library on Windows as asked in FAQ
> #180366. I recommended you to either use Cygwin or Mingw. You choose
> Mingw. While using mingw to build the library, you encountered an error
> that aborts the process. Am I right?
>
> The error message seems to be "src/common/ip.c:408: undefined reference
> to `ntohs@4'". Am I right?
>
> What I do not understand is why you mention that <winsock.h> is included
> in ip.c? I winsock.h something you added?
>
> Regards,
> Didier
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~rohc
> Post to : [email protected]
> Unsubscribe : https://launchpad.net/~rohc
> More help : https://help.launchpad.net/ListHelp
--
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.
_______________________________________________
Mailing list: https://launchpad.net/~rohc
Post to : [email protected]
Unsubscribe : https://launchpad.net/~rohc
More help : https://help.launchpad.net/ListHelp