Last active
December 11, 2015 03:43
-
-
Save Danappelxx/468b1d270ee2eb0353e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CLibbson [system] { | |
header "/usr/local/include/libbson-1.0/bson.h" | |
link "bson-1.0" | |
export * | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> swift build | |
Compiling Swift Module 'test' (1 sources) | |
<module-includes>:1:9: note: in file included from <module-includes>:1: | |
#import "/usr/local/include/libmongoc-1.0/mongoc.h" | |
^ | |
/usr/local/include/libmongoc-1.0/mongoc.h:22:10: error: 'bson.h' file not found | |
#include <bson.h> | |
^ | |
/Users/dan/Downloads/test/main.swift:1:8: error: could not build Objective-C module 'CMongoC' | |
import CMongoC | |
^ | |
<unknown>:0: error: build had 1 command failures | |
swift-build: exit(1): ["/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-01-a.xctoolchain/usr/bin/swift-build-tool", "-f", "/Users/dan/Downloads/test/.build/debug/test.o/llbuild.yaml"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CMongoC [system] { | |
header "/usr/local/include/libmongoc-1.0/mongoc.h" | |
link "mongoc-1.0" | |
export * | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment