<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Edward,<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 14.10.2017 um 22:35 schrieb Edward Connell &lt;<a href="mailto:ewconnell@gmail.com" class="">ewconnell@gmail.com</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><font face="tahoma, sans-serif" class="">Hi Geordie,</font><div class=""><font face="tahoma, sans-serif" class="">That is actually a capital "I"</font><font face="arial, helvetica, sans-serif" class="">&nbsp;eye for import</font></div><div class="">This font make an eye and elle look the same. This is the build line I am trying to use.</div></div></div></blockquote><div><br class=""></div><div>My apologies.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">swift build -Xswiftc -I/home/ed/swift-protobuf/.build/release -Xlinker -L/home/ed/swift-protobuf/.build/release<br class=""></div></div></div></blockquote><div><br class=""></div><div>Have you considered using Swift Package Manager to add protobuf as a project dependency? Then you wouldn’t have to mess around with command line arguments at all. I haven’t used protobuf yet so can’t help with specifics.</div><div><br class=""></div><div>Cheers,</div><div>Geordie</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Oct 14, 2017 at 1:00 PM, Geordie J <span dir="ltr" class="">&lt;<a href="mailto:geojay@gmail.com" target="_blank" class="">geojay@gmail.com</a>&gt;</span> wrote:<br class=""><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" class="">Hi<br class=""><div class=""><br class=""><blockquote type="cite" class=""><span class=""><div class="">Am 14.10.2017 um 21:55 schrieb Edward Connell via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a>&gt;:</div><br class="m_-6970650689748487404Apple-interchange-newline"></span><div class=""><div dir="ltr" class=""><span class="">Has anyone used the SwiftProtobuf module on Linux?<div class=""><a href="https://github.com/apple/swift-protobuf" target="_blank" class="">https://github.com/apple/<wbr class="">swift-protobuf</a><br class=""></div><div class=""><br class=""></div><div class="">I am able to successfully generate swift classes from my proto file.</div><div class="">However when building, the code compiles but I get a ton of undefined link references.</div><div class=""><br class=""></div></span><div class="">I included -Xswiftc -I/home/ed/swift-protobuf/.<wbr class="">build/release so the module is found, but still….</div></div></div></blockquote><div class=""><br class=""></div><div class="">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 class="">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 class=""><br class=""></div><div class="">Hope that helps.</div><div class=""><br class=""></div><div class="">- Geordie</div><br class=""><blockquote type="cite" class=""><div class=""><span class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class=""><div class="">------------------------</div><div class="">/home/ed/Documents/prototest/<wbr class="">Sources/DataModel.pb.swift:31: error: undefined reference to '_<wbr class="">T013SwiftProtobuf14UnknownStor<wbr class="">ageVACycfC'</div><div class="">/home/ed/Documents/prototest/<wbr class="">Sources/DataModel.pb.swift:31: error: undefined reference to '_<wbr class="">T013SwiftProtobuf14UnknownStor<wbr class="">ageVACycfC'</div><div class="">/home/ed/Documents/prototest/<wbr class="">Sources/DataModel.pb.swift:64: error: undefined reference to '_<wbr class="">T013SwiftProtobuf14UnknownStor<wbr class="">ageV8traverseyxz7visitor_<wbr class="">tKAA7VisitorRzlF'</div><div class="">/home/ed/Documents/prototest/<wbr class="">Sources/DataModel.pb.swift:0: error: undefined reference to '_<wbr class="">T013SwiftProtobuf7MessagePAAE1<wbr class="">3isInitializedSbfg'</div></div><div class=""><br class=""></div><div class="">etc...</div><div class=""><br class=""></div><div class="">Does anyone have a simple working example on Ubuntu?</div><div class=""><br class=""></div><div class="">Ubuntu 16.04</div><div class="">Swift 4.0 release</div><div class=""><br class=""></div><div class="">Thanks, Ed</div></div></span>
______________________________<wbr class="">_________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-users</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>