Re: [ng-spice] can't compile
hi,
I'm using slackware 4.0 (kernel 2.2.6).
I included sys/types.h to src/include/spice.h.This fixed the following
error:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -g -O2 -Wall -c
alloc.c
In file included from alloc.c:9:
../../src/include/spice.h:154: parse error before `num'
../../src/include/spice.h:155: parse error before `size_t'
make[3]: *** [alloc.o] Error 1
I removed #elif from line 50 of src/misc/missing_math.c. This fixed the
following error:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -g -O2 -Wall -c
missing_math.c
missing_math.c:50: empty #if expression
make[3]: *** [missing_math.o] Error 1
I removed lines 16 thru 24 of src/parser/numparse.c to get rid of the
following error:
numparse.c:18: conflicting types for `pow10'
/usr/include/math.h:221: previous declaration of `pow10'
make[3]: *** [numparse.o] Error 1
and now I'm stuck here with the following error and once more clueless.
gcc -g -O2 -Wall -o ngspice conf.o tune.o ngspice.o maths/fte/libfte.a
devices/libdev.a analysis/libckt.a parser/libparser.a hlp/libhlp.a
circuit/libinp.a maths/ni/libni.a maths/sparse/libsparse.a misc/libmisc.a
-lm -lncurses -L/usr/X11R6/lib -lX11 -lXt -lXext -lXaw -lXmu -lSM -lICE
maths/sparse/libsparse.a(spsmp.o): In function `SMPcDProd':
/home/jerry/ng-spice/src/maths/sparse/spsmp.c:411: undefined reference to
`scalb'
/home/jerry/ng-spice/src/maths/sparse/spsmp.c:412: undefined reference to
`scalb'
/home/jerry/ng-spice/src/maths/sparse/spsmp.c:417: undefined reference to
`scalb'
/home/jerry/ng-spice/src/maths/sparse/spsmp.c:418: undefined reference to
`scalb'
make[3]: *** [ngspice] Error 1
During the whole process the compiler gives dozens and dozens of warnings as
well.
What really puzzles me about this is that most of you reported it to compile
fine (if remember properly). Is something wrong with my system config?
I hope these questions/comments are apropriate for this mailing list. If not
let me know and I'll stop the whining.
thanks
jerome
>May be that sys/types.h file, I had the same problem
>with ng-spice-0.4 and I added it to alloc.c. I thogth it was related to
>the relatively old distribution we have here at the University.
>
>Paolo
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Partial thread listing: