Hi All,

I am trying to compile a small executable (legacy) on linux and I am getting a 
linker error that it cannot find the msg_send function (kinda critical). I have 
installed GNUstep from apt-get on this machine (ubuntu 18.04) as well as clang 
(3.9 as you’ll see in the command). Here is my command and the results. Can 
anyone give me any clues as to why this might be - I am assuming that I am not 
linking the correct the library, but I am not sure why:

⤇ clang-3.9 \
→    `gnustep-config --debug-flags` \
→    `gnustep-config --base-libs` \
→    -fobjc-runtime=gnustep \
→    -lobjc \
→    -lgnustep-base \
→    -L/usr/lib/gcc/x86_64-linux-gnu/7/libobjc.so \
→    -F/usr/include/GNUstep/ \
→    -I/usr/include/GNUstep/ \
→    -F/usr/lib/gcc/x86_64-linux-gnu/7/include/ \
→    -I/usr/lib/gcc/x86_64-linux-gnu/7/include/ \
→    ACGBigNum.m \
→    KagiGenericACG.m \
→    main.m \
→    -o generateIndevRegistration

/tmp/ACGBigNum-600eb1.o: In function `_i_ACGBigNum__init':
ACGBigNum.m:(.text+0x2d): undefined reference to `objc_msgSend'
/tmp/ACGBigNum-600eb1.o: In function `_i_ACGBigNum__initWithUInt64_':
ACGBigNum.m:(.text+0x8a): undefined reference to `objc_slot_lookup_super'
ACGBigNum.m:(.text+0x10d): undefined reference to `objc_msgSend'
/tmp/ACGBigNum-600eb1.o: In function `_i_ACGBigNum__initWithDigits_numDigits_':
ACGBigNum.m:(.text+0x1b0): undefined reference to `objc_slot_lookup_super'
ACGBigNum.m:(.text+0x239): undefined reference to `objc_msgSend'
/tmp/ACGBigNum-600eb1.o: In function `_i_ACGBigNum__initWithString_baseChars_':
ACGBigNum.m:(.text+0x313): undefined reference to `objc_msgSend'
ACGBigNum.m:(.text+0x34c): undefined reference to `objc_msgSend'
ACGBigNum.m:(.text+0x36a): undefined reference to `objc_msgSend'
ACGBigNum.m:(.text+0x384): undefined reference to `objc_msgSend'
/tmp/ACGBigNum-600eb1.o:ACGBigNum.m:(.text+0x3a0): more undefined references to 
`objc_msgSend' follow
/tmp/ACGBigNum-600eb1.o: In function `_i_ACGBigNum__dealloc':
ACGBigNum.m:(.text+0x57d): undefined reference to `objc_slot_lookup_super'
/tmp/ACGBigNum-600eb1.o: In function `_i_ACGBigNum__copyWithZone_':
ACGBigNum.m:(.text+0x5f5): undefined reference to `objc_msgSend'
ACGBigNum.m:(.text+0x647): undefined reference to `objc_msgSend'
/tmp/ACGBigNum-600eb1.o: In function `_i_ACGBigNum__add_':
ACGBigNum.m:(.text+0x6ed): undefined reference to `objc_msgSend'
ACGBigNum.m:(.text+0x711): undefined reference to `objc_msgSend'
ACGBigNum.m:(.text+0x73a): undefined reference to `objc_msgSend'
/tmp/ACGBigNum-600eb1.o:ACGBigNum.m:(.text+0x8e8): more undefined references to 
`objc_msgSend' follow
/tmp/KagiGenericACG-76fa1c.o: In function 
`_i_KagiGenericACG__initWithConfigurationDictionary_':
KagiGenericACG.m:(.text+0x3ca): undefined reference to `objc_slot_lookup_super'
KagiGenericACG.m:(.text+0x412): undefined reference to `objc_msgSend'
KagiGenericACG.m:(.text+0x435): undefined reference to `objc_msgSend'
KagiGenericACG.m:(.text+0x464): undefined reference to `objc_msgSend'
KagiGenericACG.m:(.text+0x490): undefined reference to `objc_msgSend'
KagiGenericACG.m:(.text+0x4b4): undefined reference to `objc_msgSend'
/tmp/KagiGenericACG-76fa1c.o:KagiGenericACG.m:(.text+0x4c6): more undefined 
references to `objc_msgSend' follow
clang: error: linker command failed with exit code 1 (use -v to see invocation)



‌Scott Little‌ 
‌[email protected] <mailto:[email protected]>‌
—
“...you can’t reason someone out of a position they didn’t reason themselves 
into” – Phil Plait‌
—
‌
‌




Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to