R: Problem with linking step

Alessandro Vicini alessandro.vicini@sitael.com
Fri Sep 1 14:55:00 GMT 2017


Thank you Jonathan, but if I add -ldl to the command line I get:

/usr/x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/6/libgomp.a(proc.o): undefined reference to symbol 'pthread_getaffinity_np@@GLIBC_2.3.4'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status



-----Messaggio originale-----
Da: Jonathan Wakely [mailto:jwakely.gcc@gmail.com] 
Inviato: venerdì 1 settembre 2017 16:50
A: Alessandro Vicini
Cc: gcc-help@gcc.gnu.org
Oggetto: Re: Problem with linking step


This isn't really a GCC question, but the problem is that dlclose is defined in libdl and you didn't add -ldl to the command-line.


More information about the Gcc-help mailing list