[go-nuts] Re: RFC: Blog post: How to not use an HTTP router

2017-06-23 Thread Steve Roth
Hello, Axel, I like your concept and I am applying it. But I believe that the code in your blog post is broken. In various places you call head, r.URL.String = SplitPath(r.URL.String) But r.URL.String is a function, not a property. This code doesn't compile. I think perhaps maybe you meant

Re: [go-nuts] swig and go - g++4.8 does not have -no-pie

2017-06-23 Thread Ian Lance Taylor
On Fri, Jun 23, 2017 at 2:52 PM, wrote: > go version go1.7.4 linux/amd64 > > > The link you're referring to is an issue with the LANG env variable; mine is > set to LANG=en_US.UTF-8 which the OP mentioned go build succeeds with Is it possible that you are using a different version of gcc and g++

Re: [go-nuts] swig and go - g++4.8 does not have -no-pie

2017-06-23 Thread jkleong
go version go1.7.4 linux/amd64 The link you're referring to is an issue with the LANG env variable; mine is set to LANG=en_US.UTF-8 which the OP mentioned go build succeeds with On Friday, June 23, 2017 at 2:43:11 PM UTC-7, Ian Lance Taylor wrote: > > On Fri, Jun 23, 2017 at 2:09 PM, > > wr

Re: [go-nuts] swig and go - g++4.8 does not have -no-pie

2017-06-23 Thread Ian Lance Taylor
On Fri, Jun 23, 2017 at 2:09 PM, wrote: > > Hi, I'm trying to wrap a c++ library with swig to be called by Go. > > I've gotten "go build" to run up to the point to where I get the error: > g++-4.8: error: unrecognized command line option '-no-pie' > > The library I'm using is only supported up to

Re: [go-nuts] swig and go: cxx generation fail - No such file or directory for #include .h file

2017-06-23 Thread Ian Lance Taylor
On Fri, Jun 23, 2017 at 11:27 AM, wrote: > > I'm using go version 1.7.4 on linux/amd64 and trying to run go build on a > .swigcxx file. I also have a .go file that has the package name and string: > import "C" > package mdm > > > import "C" > > > > My .swigcxx file is trying to include a library

Re: [go-nuts] swig and go

2017-06-23 Thread larry104
Don't forget the linker flags ... #cgo LDFLAGS: -L -l -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more option

Re: [go-nuts] swig and go

2017-06-23 Thread jkleong
Got past that error now :) was missing a space between multiple -I On Friday, June 23, 2017 at 2:08:59 PM UTC-7, Sebastien Binet wrote: > > > > On Fri, Jun 23, 2017 at 10:53 PM, > > wrote: > >> Thanks. My .go file contains just the following: >> >> package mypackage >> // #cgo CXXFLAGS: -I/usr/fo

[go-nuts] swig and go - g++4.8 does not have -no-pie

2017-06-23 Thread jkleong
Hi, I'm trying to wrap a c++ library with swig to be called by Go. I've gotten "go build" to run up to the point to where I get the error: g++-4.8: error: unrecognized command line option '-no-pie' The library I'm using is only supported up to g++ 4.8. Is there any way around this command? --

Re: [go-nuts] swig and go

2017-06-23 Thread Sebastien Binet
On Fri, Jun 23, 2017 at 10:53 PM, wrote: > Thanks. My .go file contains just the following: > > package mypackage > // #cgo CXXFLAGS: -I/usr/folder/subfolder > import "C" > > and when I do "go build" or "go build -x" I get an error that the #include > library i'm using is not found. has anyone ru

Re: [go-nuts] swig and go

2017-06-23 Thread jkleong
Thanks. My .go file contains just the following: package mypackage // #cgo CXXFLAGS: -I/usr/folder/subfolder import "C" and when I do "go build" or "go build -x" I get an error that the #include library i'm using is not found. has anyone run into this before? On Friday, June 23, 2017 at 1:39:2

Re: [go-nuts] swig and go

2017-06-23 Thread Sebastien Binet
On Fri, Jun 23, 2017 at 10:28 PM, wrote: > Could someone elaborate how the CXXFLAGS will look in the .go file? > > Is it like > // #cgo CXXFLAGS: -I/ > > > yes. more precisely: // #cgo CXXFLAGS: -I/path/to/some/folder import "C" with no blank like between the comment with the preprocessor-like

Re: [go-nuts] swig and go

2017-06-23 Thread jkleong
Could someone elaborate how the CXXFLAGS will look in the .go file? Is it like // #cgo CXXFLAGS: -I/ On Thursday, April 13, 2017 at 4:35:54 PM UTC-7, larry104 wrote: > > >> >> CXXFLAGS >> >> See https://golang.org/cmd/cgo . >> >> Ian >> > > Cool - that works now like a charm - so much simpl

[go-nuts] [ANN] go-resty v0.13 released - simple HTTP and REST client library

2017-06-23 Thread Jeevanandam M.
Stable Version : gopkg.in/resty.v0 Edge Version : github.com/go-resty/resty godoc : https://godoc.org/github.com/go-resty/resty *Changelog:* - Added Retry timeouts shortcuts to default resty client PR #73 @bak1an - Do not set `X-User-Agent` in the request PR #77 @Robbilie

[go-nuts] swig and go: cxx generation fail - No such file or directory for #include .h file

2017-06-23 Thread jkleong
Hi, I'm using go version 1.7.4 on linux/amd64 and trying to run go build on a .swigcxx file. I also have a .go file that has the package name and string: import "C" package mdm import "C" My .swigcxx file is trying to include a library and methods from this library: %module mdm ${ #include

[go-nuts] Building graphs with functions only

2017-06-23 Thread Stefan Nilsson
As a Midsummer greeting from the Northern Hemisphere to all fellow golang-nutters, here's a text about a somewhat unusual case of functional programming in Go: https://github.com/yourbasic/func -- You received this message because you are subscribed to the Google Groups "golang-nuts" group