![]() |
|
|
#1 |
|
"hang"
Oct 2014
ho chi minh city
3 Posts |
Hi. I've tried numerous times to build PRPNet on Linux, with no success. The error message says that it cannot be linked. Any solutions? Trying to use PRPNet 5.0.7 on Kubuntu 11.10 (soon to be 12.04) x64.
thank's. |
|
|
|
|
|
#2 |
|
"Dave"
Sep 2005
UK
277610 Posts |
If it's the same error as I got, then the linking will work if you move -lpthread after all the object files on the line that links prpserver. Goodness knows why Ubuntu requires this but it does work if the error message relates to functions in the pthread library.
|
|
|
|
|
|
#3 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
722110 Posts |
Quote:
Namely, when searching a targeted -l<whatever>, it doesn't create a list of all symbols in that lib, but rather only looks for any currently-unlinked symbols in the lib. So if it searches the lib *before* the unlinked-symbol is declared, it will declare that symbol unlinked, even though the correct lib is in the command. The solution is to put all libs last. This "bug" has been a well known issue for years, and sadly can be quite difficult to diagnose (especially for beginners/those who haven't encountered it before) because it's such an unintuitive problem (and the error message it produces it entirely unrelated to the error). |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Configuring PRPNet ODBC on Linux | amphoria | Software | 11 | 2020-01-14 14:23 |
| [Patch] CPU affinity prompt problem in mprime Linux / OS X build | Explorer09 | Software | 1 | 2017-03-01 02:34 |
| PRPNet Build Errors on Linux | Happy5214 | Software | 8 | 2012-05-18 12:42 |
| Is More Information Better? | davar55 | Puzzles | 3 | 2009-07-02 20:25 |
| Linux build for LLRNet client available! | axn | Sierpinski/Riesel Base 5 | 9 | 2008-11-26 03:47 |