What are the functions “ntohl” and “htonl”? They don’t look like SDL
functions, so it may not be an SDL project problem… (you may be
missing a .LIB in your project)
As for the breakpoints, you need to tell VC which additional libraries
you are using, so that it can load the corresponding debugging
information.
Project/Settings…/Debug/Category=Additional DLLs
In the “Modules” box, add the full path to the DLL you are trying to
debug.–
Olivier A. Dagenais - Software Architect and Developer
wrote in message news:3b374c3f.6679.0 at meloo.com…
Hi,
I followed your suggestions but did not work either.
The error message is:
Compiling…
HDTmain.c
Linking…
Linking…
HM414.lib(xdrposix.obj) : error LNK2001: unresolved external symbol
_ntohl at 4
HM414.lib(xdrposix.obj) : error LNK2001: unresolved external symbol
_htonl at 4
Debug/HDTMain.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
HDTMain.exe - 3 error(s), 0 warning(s)
Later I used "debug multi-threaded" switch instead of
"debug
multi-threaded dll" the errors were gone, but I still got “One or
more
breakpoints can not be set and have been removed…” message dialog
box.
I tried almost all compile/debug swtich combinations and
all
failed.
Need your advice!!! I am using VC/6.0 student version.Wint 4.0,
Thank you very much.
salah.
Ce mel a ?t? envoy? avec Meloo http://www.meloo.com
Info Meloo : L’Echo du Village est en kiosque : Exprimez vous gr?ce
aux outils gratuits d’Internet !
Network To Host Long
and
Host To Network Long
They are used to insure correct endianess when sending longs across a
network.On Mon, 25 Jun 2001, Olivier Dagenais wrote:
What are the functions “ntohl” and “htonl”? They don’t look like SDL
functions, so it may not be an SDL project problem… (you may be
missing a .LIB in your project)
As for the breakpoints, you need to tell VC which additional libraries
you are using, so that it can load the corresponding debugging
information.
Project/Settings…/Debug/Category=Additional DLLs
In the “Modules” box, add the full path to the DLL you are trying to
debug.
–
Olivier A. Dagenais - Software Architect and Developer
wrote in message news:3b374c3f.6679.0 at meloo.com…
Hi,
I followed your suggestions but did not work either.
The error message is:
Compiling…
HDTmain.c
Linking…
Linking…
HM414.lib(xdrposix.obj) : error LNK2001: unresolved external symbol
_ntohl at 4
HM414.lib(xdrposix.obj) : error LNK2001: unresolved external symbol
_htonl at 4
Debug/HDTMain.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
HDTMain.exe - 3 error(s), 0 warning(s)
Later I used "debug multi-threaded" switch instead of
"debug
multi-threaded dll" the errors were gone, but I still got “One or
more
breakpoints can not be set and have been removed…” message dialog
box.
I tried almost all compile/debug swtich combinations and
all
failed.
Need your advice!!! I am using VC/6.0 student version.Wint 4.0,
Thank you very much.
salah.
Ce mel a ?t? envoy? avec Meloo http://www.meloo.com
Info Meloo : L’Echo du Village est en kiosque : Exprimez vous gr?ce
aux outils gratuits d’Internet !
What are the functions “ntohl” and “htonl”? They don’t look like SDL
functions, so it may not be an SDL project problem… (you may be
missing a .LIB in your project)
ntohl and htonl are common network calls (network to host long, host to
network long, ‘smart’ endian handling). On windows, I’d assume this’d
mean winsock needs to be linked?
-Erik <erik at floatingmind.com> [http://math.smsu.edu/~erik]
The opinions expressed by me are not necessarily opinions. In all probability,
they are random rambling, and to be ignored. Failure to ignore may result in
severe boredom or confusion. Shake well before opening. Keep Refrigerated.
They are used to insure correct endianess when sending longs across a
network.
no, they are used to convert 32-bit integers to and from network byte order
(also known as big-endian order). We are unfortunately stuck with the names