¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: XEphem 3.5 compilation (Windows)


 

--- In xephem@y..., "Mihaly Andras" <andras_mihaly@y...> wrote:
I have got a strange linker error when trying to build the GUI
binary:

Warning: resolving _h_errno by linking to __imp__h_errno
(auto-import)
fu000001.o(.idata$3+0xc): undefined reference to `templib_a_iname'
nmth000000.o(.idata$4+0x0): undefined reference to `_nm__h_errno'
collect2: ld returned 1 exit status
make: *** [xephem.exe] Error 1

I'm using cygwin with gcc-2.95.3-5 and lesstif-0.93.0 ,
out-of-the-box makefiles for the libraries and xmkmf generated one for
the GUI.
Any help would be appreciated.
Thank you.

Remove in file netmenu.c the lines # 1013,1014,1015

/**** #if !defined(h_errno) /* not always in netdb.h */
/*** extern int h_errno;
#endif
****/

Then compile it again - all should go well.

Regards
Klaus

Join [email protected] to automatically receive all group messages.