multiple definition of 'getopt_long_only'

赵爱南 zhaoainan163@163.com
Fri Jun 6 03:07:42 GMT 2025


Dear All,
I am a glibc developer. Now I use gcc 10.30 + glibc 2.34  compile Spec2006(version 1.2) 445 has an error, 


lib/libc.a(getopt1.o): in function 'getopt_long_only':
glibc-2.34/posix/getopt1.c:multiple definition of 'getopt_long_only'; utils/getopt1.o:first defined here.




Additionally, in our architecture, long double and double have the same Application Binary Interface (ABI). Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250606/22e7f0f3/attachment-0001.htm>


More information about the Libc-alpha mailing list