problem in compiling ngspice

2012-10-03
2013-06-12
  • Tamil Vanan K
    Tamil Vanan K
    2012-10-03

    Hi,

    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
    $ make
    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 .

    Regards,
    Tamil

     
  • Tamil Vanan K
    Tamil Vanan K
    2012-10-03

    Hi,
    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)  ?

     
  • Tamil Vanan K
    Tamil Vanan K
    2012-10-04

    ya, i have find it,
    export LIBS=-lpthread