<div dir="ltr"><font face="tahoma, sans-serif">Hi Geordie,</font><div><font face="tahoma, sans-serif">That is actually a capital "I"</font><font face="arial, helvetica, sans-serif"> eye for import</font></div><div>This font make an eye and elle look the same. This is the build line I am trying to use.</div><div><br></div><div>swift build -Xswiftc -I/home/ed/swift-protobuf/.build/release -Xlinker -L/home/ed/swift-protobuf/.build/release<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 14, 2017 at 1:00 PM, Geordie J <span dir="ltr"><<a href="mailto:geojay@gmail.com" target="_blank">geojay@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi<br><div><br><blockquote type="cite"><span class=""><div>Am 14.10.2017 um 21:55 schrieb Edward Connell via swift-users <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>>:</div><br class="m_-6970650689748487404Apple-interchange-newline"></span><div><div dir="ltr"><span class="">Has anyone used the SwiftProtobuf module on Linux?<div><a href="https://github.com/apple/swift-protobuf" target="_blank">https://github.com/apple/<wbr>swift-protobuf</a><br></div><div><br></div><div>I am able to successfully generate swift classes from my proto file.</div><div>However when building, the code compiles but I get a ton of undefined link references.</div><div><br></div></span><div>I included -Xswiftc -I/home/ed/swift-protobuf/.<wbr>build/release so the module is found, but still….</div></div></div></blockquote><div><br></div><div>This should be "-Xlinker” rather than “-Xswiftc”, and also “-l” is for specifying system library names (e.g. "-latomic”). I’m pretty new to this but I think the correct flag is “-L”.</div><div>So in the past I have used “-Xlinker -L/path/to/libs”, but I’ve recently read you can actually leave off “-Xlinker” and just have the “-L” bit.</div><div><br></div><div>Hope that helps.</div><div><br></div><div>- Geordie</div><br><blockquote type="cite"><div><span class=""><div dir="ltr"><div><br></div><div><div>------------------------</div><div>/home/ed/Documents/prototest/<wbr>Sources/DataModel.pb.swift:31: error: undefined reference to '_<wbr>T013SwiftProtobuf14UnknownStor<wbr>ageVACycfC'</div><div>/home/ed/Documents/prototest/<wbr>Sources/DataModel.pb.swift:31: error: undefined reference to '_<wbr>T013SwiftProtobuf14UnknownStor<wbr>ageVACycfC'</div><div>/home/ed/Documents/prototest/<wbr>Sources/DataModel.pb.swift:64: error: undefined reference to '_<wbr>T013SwiftProtobuf14UnknownStor<wbr>ageV8traverseyxz7visitor_<wbr>tKAA7VisitorRzlF'</div><div>/home/ed/Documents/prototest/<wbr>Sources/DataModel.pb.swift:0: error: undefined reference to '_<wbr>T013SwiftProtobuf7MessagePAAE1<wbr>3isInitializedSbfg'</div></div><div><br></div><div>etc...</div><div><br></div><div>Does anyone have a simple working example on Ubuntu?</div><div><br></div><div>Ubuntu 16.04</div><div>Swift 4.0 release</div><div><br></div><div>Thanks, Ed</div></div></span>
______________________________<wbr>_________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br></div></blockquote></div><br></div></blockquote></div><br></div>