xcode - Undefined symbols for architecture x86_64 when linking c project -
i try compile picoc project xcode. no external libraries, .c , .h files imported in command line tool c project.
all .c files compile without issue, when xcode linking, these messages:
undefined symbols architecture x86_64: "_basicioinit", referenced from: _picocinitialise in platform.o "_cstdout", referenced from: _printsourcetexterrorline in platform.o _platformvprintf in platform.o "_mathfunctions", referenced from: _includeinit in include.o "_mathsetupfunc", referenced from: _includeinit in include.o "_picocplatformscanfile", referenced from: _includefile in include.o ...
the command giving error following:
/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang -v -arch x86_64 -isysroot /applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.8.sdk -l/users/laurent/library/developer/xcode/deriveddata/pico-dhfwbamkhiyphjcwuncbwjsyjlax/build/products/debug -f/users/laurent/library/developer/xcode/deriveddata/pico-dhfwbamkhiyphjcwuncbwjsyjlax/build/products/debug -filelist /users/laurent/library/developer/xcode/deriveddata/pico-dhfwbamkhiyphjcwuncbwjsyjlax/build/intermediates/pico.build/debug/pico.build/objects-normal/x86_64/pico.linkfilelist -mmacosx-version-min=10.8 -o /users/laurent/library/developer/xcode/deriveddata/pico-dhfwbamkhiyphjcwuncbwjsyjlax/build/products/debug/pico
the pico.linkfilelist file contains list of necessary .o files.
unfound functions in compiled .c files (and compiled .o), should avoid these errors ? thanks.
those symbols in clibrary.c
; must have missed list of source files compile.
your next question doubtless libraries link executable with, , solve suggest @ makefile
.
Comments
Post a Comment