[mod_python] Compiling mod_python on Win32

Wyant, Jaime jwyant at sfbcic.com
Tue Jan 7 10:14:12 EST 2003


>>>-----Original Message-----
>>>From: Victor Medina [mailto:vmedina98 at unitec.edu.ve]
>>>Sent: Tuesday, January 07, 2003 10:04 AM
>>>To: mod_python at modpython.org
>>>Subject: Re: [mod_python] Compiling mod_python on Win32
>>>
>>>
>>>Hi Guys!!!
>>>
>>>Using LONG_LONG seems to have fixed that problem, although I 
>>>still can't 
>>>compile mod_python, things are getting better. =)
>>>
>>>DOUBT#1: LONG_LONG is a macro for safe type conversion?
>>>

Don't know about Doubt #1...

>>>PROBLEM#1: I am attaching my output, I am concerned about 
>>>several thing 
>>>here, there is a lot of warnings about link problems, are 
>>>they normal, 
>>>expected stuff? Second; there are unresolved external 
>>>symbols that the 
>>>compiler can't map out here:
>>>
>>>connobject.obj : error LNK2001: unresolved external symbol 
>>>__imp__ntohs at 4
>>>connobject.obj : error LNK2001: unresolved external symbol 
>>>__imp__ntohl at 4

Info about ntohl according to MSDN (see the last line):

QuickInfo
  Windows NT: Yes
  Windows: Yes
  Windows CE: Use version 1.0 and later.
  Header: Declared in winsock2.h.
  Import Library: Link with ws2_32.lib.

Good luck!
jaime



More information about the Mod_python mailing list