[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plotutils make fails on WinNT 4
From: |
Taneli . Waltari |
Subject: |
Re: plotutils make fails on WinNT 4 |
Date: |
Tue, 28 Nov 2000 15:15:40 GMT |
In article <address@hidden>,
"Stuart G. Mentzer" <address@hidden> wrote:
> Hello,
>
> I'm trying to build plotutils 2.4.1 on WinNT 4 (SP5) using
> gcc 2.95.2-3 (cygwin). configure runs OK but make fails
> with the errors:
...
> specfun.o(.text+0xbc):specfun.c: undefined reference to `signgam'
I compiled plotutils 2.41 successfully on W2K, latest Cygwin net
release. I faced the same error message and got ridd of it by changing
the following line of <plotutils_dir>/ode/specfun.c
#ifdef NO_SYSTEM_GAMMA
#define SIGNGAM our_signgam
like this
#if defined(NO_SYSTEM_GAMMA) || defined(__CYGWIN__)
#define SIGNGAM our_signgam
Soon I faced more problems, I guess due to Cygwin's limited support for
pthreads (PTHREAD_MUTEX_INITIALIZER was undeclared).
I overcame this by installing http://sources.redhat.com/pthreads-win32/
like this:
copy pthread.lib to /usr/local/lib/libpthread.a
copy pthread.dll to /usr/local/bin
rename /usr/include/pthread.h to pthread-old.h
copy pthread.h to /usr/include
pthread.h contained the following typo:
#if !defined(_MSC_VER) && !defined(__cplusplus)
ptw32_leanup_t *prev;
which I fixed like this:
#if !defined(_MSC_VER) && !defined(__cplusplus)
ptw32_cleanup_t *prev;
I also had to comment out the following lines from Cygwin header files
to avoid conflicting declarations:
unistd.h:
int _EXFUN(gethostname, (char *__name, size_t __len));
wingdi.h:
int WINAPI Escape(HDC,int,int,LPCSTR,PVOID);
However, I still haven't figured out how to compile libplotter.lib
needed for linking libplot from C++;
Sent via Deja.com http://www.deja.com/
Before you buy.