Displaying 1 result from an estimated 1 matches for "_galadriel".
Did you mean:
galadriel
2002 Jan 02
1
multiple definitions in C code
...[localhost:~/Desktop/rings] deleeuw% gcc -c -fno-common galadriel.c
[localhost:~/Desktop/rings] deleeuw% nm -pg elrond.o
000000a8 S _bilbo
00000000 T _elrond
U _printf
U dyld_stub_binding_helper
[localhost:~/Desktop/rings] deleeuw% nm -pg galadriel.o
000000c0 S _bilbo
00000000 T _galadriel
U _printf
U dyld_stub_binding_helper
and then
[localhost:~/Desktop/rings] deleeuw% gcc -bundle -o rings.so elrond.o
galadriel.o
/usr/bin/ld: multiple definitions of symbol _bilbo
elrond.o definition of _bilbo in section (__DATA,__common)
galadriel.o definition of _bilbo in se...