Link problems in win32.o of ns
YangMing
pantong@public1.ptt.js.cn
Sun, 27 Sep 1998 11:11:27 +0800
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01BDEA07.9238AB60
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
When I run command "nmake makefile.vc" under windows95,the LINK program =
reports following problems.=20
--------------------------------------------=20
win32.o : error LNK2001: unresolved external symbol _gethostname@8
win32.o : error LNK2001: unresolved external symbol =
__imp__MessageBoxA@16
win32.o : error LNK2001: unresolved external symbol __imp__MessageBeep@4
win32.o : error LNK2001: unresolved external symbol =
__imp__SetMessageQueue@4
win32.o : error LNK2001: unresolved external symbol _WSAStartup@8
____________________________________________=20
I don't know why LINK can't find SDK functions such as =
gethostname,MessageBox,MessageBeep,.=20
Thanks!
------=_NextPart_000_000A_01BDEA07.9238AB60
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Dgb2312 http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT size=3D2>When I run command "nmake makefile.vc" =
under=20
windows95,the LINK program reports following =
problems.</FONT> </DIV>
<DIV><FONT=20
size=3D2>--------------------------------------------</FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>win32.o : error LNK2001: unresolved =
external=20
symbol _<STRONG>gethostname</STRONG>@8<BR>win32.o : error LNK2001: =
unresolved=20
external symbol __imp__<STRONG>MessageBox</STRONG>A@16<BR>win32.o : =
error=20
LNK2001: unresolved external symbol=20
__imp__<STRONG>MessageBeep</STRONG>@4<BR>win32.o : error LNK2001: =
unresolved=20
external symbol __imp__<STRONG>SetMessageQueue</STRONG>@4<BR>win32.o : =
error=20
LNK2001: unresolved external symbol=20
_<STRONG>WSAStartup</STRONG>@8<BR>_______________________________________=
_____</FONT> </DIV>
<DIV><FONT size=3D2>I don't know why LINK can't find SDK functions such =
as=20
gethostname,MessageBox,MessageBeep,. </FONT></DIV>
<DIV><FONT size=3D2>Thanks!</FONT></DIV></DIV></BODY></HTML>
------=_NextPart_000_000A_01BDEA07.9238AB60--