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@xxxxxxxxx] Inviato: venerdì 1 settembre 2017 16:50 A: Alessandro Vicini Cc: gcc-help@xxxxxxxxxxx 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.