はその後、私は "迅速なビルド" をコンパイルし、エラーを取得し、FUNCのcurlHelperSetOptStringを呼び出す:エラー - 私は私のプロジェクト(Kitura <a href="https://github.com/IBM-Swift/Kitura" rel="nofollow">https://github.com/IBM-Swift/Kitura</a>)にCCurl(<a href="https://github.com/IBM-Swift/CCurl.git" rel="nofollow">https://github.com/IBM-Swift/CCurl.git</a>)を使用して迅速-Kitura
duplicate symbol _curlHelperSetOptString in: /Users/xxxx/Documents/server/ServerSwift/.build/debug/ServerSwift.build/UploadService.swift.o /Users/xxxx/Documents/server/ServerSwift/.build/debug/KituraNet.build/ClientRequest.swift.o ld: 1 duplicate symbol for architecture x86_64 :0: error: link command failed with exit code 1 (use -v to see invocation) :0: error: build had 1 command failures
コード:
import CCurl
var handle=curl_easy_init()
if (handle != nil) {
let url = "http: //example.com/"
let buffer=url.cString(using: .utf8)
curlHelperSetOptString(handle, CURLOPT_URL, buffer)
}
ヘルプ私、プラザあなたはビルドフェーズ/ソースをコンパイルの下に複数のエントリを持っていない