|
[Sponsors] |
OF library installation : undefined reference to `pthread_create' |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 1, 2013, 12:18 |
OF library installation : undefined reference to `pthread_create'
|
#1 |
New Member
Luca Franceschini
Join Date: Aug 2012
Posts: 29
Rep Power: 13 |
Hello EveryBody,
Its me again ... So i am trying to install a OF new solver that requires BLAS. I have not noticed anything wrong in the BLAS installation. ( i have installed putting CC=mpicc and FC=mpif77 and forcing multithreat USE_THREAD = 1 ) but when i compile the OF application i have this error? blas_server.c.text+0x50a): undefined reference to `pthread_create' Note that OF is already installed. Where do you think is the mistake in the BLAS installation or in the OF options? Thank you a lot P.S. installation is on a normal desktop running Ubuntu 12.04 |
|
July 1, 2013, 18:47 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings Luca,
The error message is indicating that the file "blas_server.c" that is already compiled, needs a function named "pthread_create", for the application to be fully linked to all of the libraries it needs. In other words, it's telling you that you need to indicate in which library is the function "pthread_create". Something like: Code:
-lpthread Bruno
__________________
|
|
July 2, 2013, 08:21 |
|
#3 |
New Member
Luca Franceschini
Join Date: Aug 2012
Posts: 29
Rep Power: 13 |
Hi Bruno,
it is you again ? problem solved. Thank you as always. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 05:28 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |