I am having an error when trying to use a function I created (in .h and .c files) in the main.c file. I've imported the .h file containing the function which is also imported in its respective .c file.
Any ideas on how to solve this?
Thanks in advance!
(pasting the error below)
Any ideas on how to solve this?
Thanks in advance!
(pasting the error below)
Code:
Ld /Users/Guido/Library/Developer/Xcode/DerivedData/Proyecto2.3-ertriwqybmccuobtvwpypjxnriku/Build/Products/Debug/Proyecto2.3 normal x86_64
cd /Users/Guido/Documents/C/Proyecto2.3
export MACOSX_DEPLOYMENT_TARGET=10.9
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/Users/Guido/Library/Developer/Xcode/DerivedData/Proyecto2.3-ertriwqybmccuobtvwpypjxnriku/Build/Products/Debug -F/Users/Guido/Library/Developer/Xcode/DerivedData/Proyecto2.3-ertriwqybmccuobtvwpypjxnriku/Build/Products/Debug -filelist /Users/Guido/Library/Developer/Xcode/DerivedData/Proyecto2.3-ertriwqybmccuobtvwpypjxnriku/Build/Intermediates/Proyecto2.3.build/Debug/Proyecto2.3.build/Objects-normal/x86_64/Proyecto2.3.LinkFileList -mmacosx-version-min=10.9 -Xlinker -dependency_info -Xlinker /Users/Guido/Library/Developer/Xcode/DerivedData/Proyecto2.3-ertriwqybmccuobtvwpypjxnriku/Build/Intermediates/Proyecto2.3.build/Debug/Proyecto2.3.build/Objects-normal/x86_64/Proyecto2.3_dependency_info.dat -o /Users/Guido/Library/Developer/Xcode/DerivedData/Proyecto2.3-ertriwqybmccuobtvwpypjxnriku/Build/Products/Debug/Proyecto2.3
Undefined symbols for architecture x86_64:
"_listaenarreglo", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Last edited by a moderator: