Re: Compiling analog to recognize Vista

"Aengus" <[email protected]>
Newsgroups gmane.comp.web.analog.general
Message-ID <007001c87d89$8963a6a0$c2041fac@WC515ALawlo>
Scott D Friedemann <scott-q2qkvckrl3ParDKv/[email protected]> wrote:
> I followed the detailed instructions from the 2007-01-14 posting for
> re-compiling analog to recognize the Vista operating system and
> receive this error upon running make
> 
> alias.o:alias.c:(.text+0x1287): undefined reference to `inet_addr@4'
> alias.o:alias.c:(.text+0x12ad): undefined reference to
> `gethostbyaddr@12' win32.o:win32.c:(.text+0x1b): undefined reference
> to `WSAStartup@8' win32.o:win32.c:(.text+0x75): undefined reference
> to `WSACleanup@0' collect2: ld returned 1 exit status
> make: *** [analog] Error 1
> 
> 
> Can someone help me get past this error?

It looks like you didn't modify the Makefile to tell MinGW to compile the code as a Win32 Executable.

You need to edit two files:

C:\MinGW\analog-6.0\src\Makefile
Line 32:
Change   OS = UNIX
to       OS = WIN32

Line 34:
Change   LIBS = -lm
to       LIBS = -lwsock32 -lm

Aengus

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.