Add..
-lws2_32
..in your project options' linker parameter.
-Pers
> Message: 1
> Date: Sun, 10 Aug 2003 14:19:48 -0300 (ART)
> From: =3D?iso-8859-1?q?Rhuan=3D20Barros?=3D <rhu...@ya...>
> To: dev...@li...
> Subject: [Dev-C++] problema com winsock
>
> estou com um problema para compilar um programa feito
> todo com winsock.
>
> na hora de compilar aparece o seguinte erro:
>
> [Linker error] undefined reference to
> `gethostbyname@4'
> [Linker error] undefined reference to `socket@12'
> [Linker error] undefined reference to `htons@4' [Linker error] undefine=
d=20
> reference to `sendto@24' [Linker error] undefined reference to=20
> `inet_ntoa@4' [Linker error] undefined reference to `closesocket@4'=20
> [Linker error] undefined reference to `WSACleanup@0' [Linker error]=20
> undefined reference to `WSAStartup@8'
>
> eu ja conpilei este programa com o C builder 6 e n=C3=A3o
> tive este problema, ele s=C3=B3 acontece com o devc++.
>
--=20
Data asks, "Sir, how is it that the Q can handle time and space so well a=
nd=20
us so badly?" and Picard replies aphoristically, "Perhaps someday we will=
=20
discover that space and time are simpler than the human equation."
mortality gives life focus and purpose
--
|