problem in compiling ngspice

  • Tamil Vanan K

    Tamil Vanan K - 2012-10-03


    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 .


  • Tamil Vanan K

    Tamil Vanan K - 2012-10-03

    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


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks