Mail Archives: cygwin/1998/06/11/19:58:03.1
Can anyone help me to compile the code into a share library? I test it
under unix, (I also use the gcc from cygnus, version 2.70) it seems
fine. It was able to generate the dll I want it, however, when I try
to compile it under windows95, I have the following message.
C:\CYGNUS\B19\H-I386~1\lib\gcc-lib\i386-cygwin32\2.7-B19\cc1.exe
C:\WINDOWS\TEMP\cc001107.i -quiet -dumpbase test.c -g version -fpic -o
C:\WINDOWS\TEMP\cc001107.s
GNU C version 2.7-B19 (i386-cygwin32) compiled by GNU C version
2.7-97r2aBeta.
C:\CYGNUS\B19\H-I386~1\lib\gcc-lib\i386-cygwin32\2.7-B19\../../../../i3
86-cygwin32\bin\as.exe -o test.o
C:\WINDOWS\TEMP\cc001107.s/CYGNUS/B19/H-I386~1/i386cygwin32/bin/as.exe:
bfd assertion fail /home/noer/src/97r2/devo/bfd/coff-i386.c:424
C:\WINDOWS\TEMP\cc001107.s: Assembler messages:
C:\WINDOWS\TEMP\cc001107.s:73: Error: Cannot represent relocation type
BFD_RELOC_386_GOTPC
gmake: *** [test.dll] Error 1
BASH.EXE-2.01$
////////////////////////////////////////////////////////////////////////
/
here is the sources:
Makefile
GCC_PIC_OPTS=-g -v -fpic -shared
$INCLUDE_OPTS = -I//c/modelsim_beta2/include
all: test.dll
test.dll: test.c
gcc -c $(GCC_PIC_OPTS) $(CC_DFLAGS) $(INCLUDE_OPTS) test.c -o
test.o
ld -b -o test.dll test.o
test.c
#include <stdio.h>
void test_init()
{
printf ("hello world\n");
}
>----------
>From: Eric Hill[SMTP:eric DOT hill AT speechmachines DOT com]
>Sent: Tuesday, June 09, 1998 1:33 PM
>To: gnu-win32 AT cygnus DOT com
>Subject: Re: mtr?
>
>to be clear, mtr is a combination of ping and traceroute. it first does a
>traceroute, then it pings each hop in the route, giving packet loss
>statistics for each hop. quite a useful bit of functionality which would
>wear down the fingers using the standard utils.
>
>eric
>
>-------------------------------------------------------------------------
>Eric Hill Speech Machines
>eric DOT hill AT speechmachines DOT com ...speech recognition for the Internet age
>650/568.1500 http://www.speechmachines.com
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -