Peter,

Go the menu bar and click on Project and then Settings.  You will have a
tab dialog box in front of you.  Click on the LINK tab and make sure on the
left side it is set for "Settings for"  "All Configurations".  Click on the
General Category on the right side and make sure wsock32.lib in on the
Object/Library Modules text box.  If not, add it.  Change the category to
Input and in the Additional Library text box add the location of the VC lib
directory.

This may be more than you need but it will make it work.  I also, finally,
got the vcvars32.bat file in the bin directory to work as part of the
autoexec.bat.  But it will work if the first part above is done.

Mike


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Wang
> Sent: Tuesday, December 29, 1998 2:40 AM
> To: [EMAIL PROTECTED]
> Subject: [analog-help] About the VC++ compiler
>
>
> Hello Mike,
>       I have the same problem with the compiler but I don't know
> how to solve
>       it. Will you please tell me how to get it done?
>       Thank you very much.
>
>
>  made sure the path was in the Integrated Developer Environment
> settings, added
> the library to the list so it was forced to use it, recompiled,
> and now it
> works.
>
> Debug--------------------
> Linking...
> alias.obj : error LNK2001: unresolved external symbol _gethostbyaddr@12
> alias.obj : error LNK2001: unresolved external symbol _inet_addr@4
> win32.obj : error LNK2001: unresolved external symbol _WSAStartup@8
> win32.obj : error LNK2001: unresolved external symbol _WSACleanup@0
> Debug/Analog.exe : fatal error LNK1120: 4 unresolved externals
> Error executing link.exe.
>
> Analog.exe - 5 error(s), 0 warning(s)
> -----------------------------------------------------------------
> ----------
> --
> Environment:
> ============
>
> Windows 98
> Visual Studio 5 / Visual C 5.0
> -----
>
>
>
>
> Best regards,
>  Peter  Wang                        mailto:[EMAIL PROTECTED]
>
>
> --------------------------------------------------------------------
> This is the analog-help mailing list. To unsubscribe from this
> mailing list, send mail to [EMAIL PROTECTED]
> with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
> --------------------------------------------------------------------
>

--------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
--------------------------------------------------------------------

Reply via email to