Mailing List Archive

Compiling analog to recognize Vista
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?

Thanks.

Scott
+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Compiling analog to recognize Vista [ In reply to ]
Scott D Friedemann <scott@...> writes:

> Can someone help me get past this error?
>
> Thanks.
>
> Scott

Scott,

The compiled 32-bit executable for Windows is here and recognises Vista and 64-
bit IE...

http://www.astrologywizard.com/misc/paul/analog_b.zip (221 kb)

Unzip to your Analog directory, overwriting existing.

Paul


+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Re: Compiling analog to recognize Vista [ In reply to ]
Paul Wade wrote:
> The compiled 32-bit executable for Windows is here and recognises Vista and 64-
> bit IE...
>
> http://www.astrologywizard.com/misc/paul/analog_b.zip (221 kb)
>
> Unzip to your Analog directory, overwriting existing.
>
> Paul

While that doesn't *exactly* fix my question, it does fix my problem. 8-}

Thanks!

Scott
+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Compiling analog to recognize Vista [ In reply to ]
Scott D Friedemann <scott@friedemann.us> 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
+------------------------------------------------------------------------
Re: Compiling analog to recognize Vista [ In reply to ]
Aengus wrote:
> 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

I had changed line 32, but not line 34. After making that change
everything works.

Thank you very much.

Scott
+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------