i have included my own thread in ngspice code .i have compiled it by using the following commands
$ ../configure -with-x -with-readline=yes -disable-debug
I got the following error :
ngspice-main.o: In function `main':
main.c:(.text.startup+0x29): undefined reference to `pthread_create'
Then i referred back the compilation notes in ngspice user manual ,i have found that i have include LIBS= -lpthread.i dont know how do it .So please guide me on this . my configure command is ../configure -with-x -with-readline=yes -disable-debug, tell me how could i add lpthread to this .
I have tried ../configure -help it shows
LIBS libraries to pass to the linker, e.g. -l<library>
so, how can i add the lpthread(pthread library) ?
google is your friend, e.g.
ya, i have find it,
Log in to post a comment.