I have two swift files. main.swift and other.swift.
I compile them as such
swiftc -emit-object main.swift other.swift Greet
When I do:
clang -o Greet main.o other.o
I get:
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
<removed for brevity>
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1
Can you tell what's wrong?
Topic:
Developer Tools & Services
SubTopic:
General
Tags: