[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: Error Compiling fileio3.6 with iverilog-vpi



Hi
 
I've set up iverilog on Windows and am tring to add Chris Spear's FileIO
PLI.
 
I've dowloaded fileio3.6 and have installed MinGW but when I run
iverilog-vpi I get the following errors:
 
C:\mingw\bin>iverilog-vpi c:\iverilog\lib\fileio3.6\fileio.c
info:  C:\MinGW will be used as the MinGW root directory.
info:  C:\iverilog will be used as the Icarus Verilog root directory.
gcc -c -o c:\iverilog\lib\fileio3.6\fileio.o -O -IC:\iverilog\include
c:\iverilo
g\lib\fileio3.6\fileio.c
c:/iverilog/lib/fileio3.6/fileio.c:236:1: warning: "SEEK_SET" redefined
In file included from c:/iverilog/lib/fileio3.6/fileio.c:223:
C:/MinGW/include/stdio.h:120:1: warning: this is the location of the
previous de
finition
c:/iverilog/lib/fileio3.6/fileio.c:237:1: warning: "SEEK_CUR" redefined
C:/MinGW/include/stdio.h:124:1: warning: this is the location of the
previous de
finition
c:/iverilog/lib/fileio3.6/fileio.c:238:1: warning: "SEEK_END" redefined
C:/MinGW/include/stdio.h:128:1: warning: this is the location of the
previous de
finition
gcc -o c:\iverilog\lib\fileio3.6\fileio.vpi -shared
-Wl,--enable-auto-image-base
 c:\iverilog\lib\fileio3.6\fileio.o -LC:\iverilog\lib -lveriuser -lvpi
c:\iverilog\lib\fileio3.6\fileio.o(.text+0xba9):fileio.c: undefined
reference to
 `tf_sizep'
c:\iverilog\lib\fileio3.6\fileio.o(.text+0xbc2):fileio.c: undefined
reference to
 `tf_sizep'
 
I tried commenting out lines 236-238 of fileio.c but I still got the errors
in fileio.o.
 
I have reinstalled MinGW but it makes no difference.
 
I'm sure I've missed out doing something very basic here, but I'd really
appreciate any advice.
 
Cheers
 
Dave

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .