Re: [go-nuts] Building golang libraries

2017-10-01 Thread Ian Lance Taylor
On Fri, Sep 29, 2017 at 10:43 PM,   wrote:
>
> Can you please provide me for Ubuntu

See https://golang.org/cmd/go and https://golang.org/s/execmodes .  If
those don't help, please ask a more specific question.

Ian

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Building golang libraries

2017-09-30 Thread desaiabhijit
Basically want to distribute my library without code and then client will 
refer it as a library in his application

Rgds,

Abhi

On Saturday, September 30, 2017 at 11:14:20 AM UTC+5:30, Abhijit Desai 
wrote:
>
> yes Ian
>
> Thanks for the help
>
> Can you please provide me for Ubuntu
>
> Thanks,
>
> Abhi
>
> On Friday, September 29, 2017 at 7:17:21 PM UTC+5:30, Ian Lance Taylor 
> wrote:
>>
>> On Thu, Sep 28, 2017 at 10:02 PM,   wrote: 
>> > 
>> > Can you please provide command line to build executable using library 
>> > 
>> > go build -linkshared main.go 
>> > 
>> > -linkshared not supported on darwin/amd64 
>> > 
>> > 
>> > doesn't work 
>>
>> You asked about creating either a static or dynamic library, and I 
>> explained how to create a static library. 
>>
>> You are correct that building a dynamic library is not supported on 
>> Darwin at present.  It's only supported on GNU/Linux.  It would be 
>> nice if someone looked into that on Darwin.  I don't know how hard it 
>> would be. 
>>
>> Ian 
>>
>>
>> > On Friday, September 29, 2017 at 9:55:53 AM UTC+5:30, Ian Lance Taylor 
>> > wrote: 
>> >> 
>> >> On Thu, Sep 28, 2017 at 9:21 PM,   wrote: 
>> >> > 
>> >> > Want to create libraries ( static or dynamic ) so that that I don't 
>> want 
>> >> > to 
>> >> > compile every time when I build my executable 
>> >> > 
>> >> > "github.com/everjit/Ion" <--- should not refer to code rather it 
>> should 
>> >> > refer to build library like .so or .dll ( in windows ) and will 
>> provide 
>> >> > that 
>> >> > to go build command line. 
>> >> > 
>> >> > package main 
>> >> > 
>> >> > import ( 
>> >> > "github.com/everjit/Ion" 
>> >> > "strings" 
>> >> > } 
>> >> > 
>> >> > func main(){ 
>> >> > Ion.Invoke() 
>> >> > } 
>> >> > 
>> >> > Please help 
>> >> 
>> >> To create static libraries, run `go install`.  For example, `go 
>> >> install github.com/everjit/lon` . 
>> >> 
>> >> Ian 
>> > 
>> > -- 
>> > 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...@googlegroups.com. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Building golang libraries

2017-09-29 Thread desaiabhijit
yes Ian

Thanks for the help

Can you please provide me for Ubuntu

Thanks,

Abhi

On Friday, September 29, 2017 at 7:17:21 PM UTC+5:30, Ian Lance Taylor 
wrote:
>
> On Thu, Sep 28, 2017 at 10:02 PM,   
> wrote: 
> > 
> > Can you please provide command line to build executable using library 
> > 
> > go build -linkshared main.go 
> > 
> > -linkshared not supported on darwin/amd64 
> > 
> > 
> > doesn't work 
>
> You asked about creating either a static or dynamic library, and I 
> explained how to create a static library. 
>
> You are correct that building a dynamic library is not supported on 
> Darwin at present.  It's only supported on GNU/Linux.  It would be 
> nice if someone looked into that on Darwin.  I don't know how hard it 
> would be. 
>
> Ian 
>
>
> > On Friday, September 29, 2017 at 9:55:53 AM UTC+5:30, Ian Lance Taylor 
> > wrote: 
> >> 
> >> On Thu, Sep 28, 2017 at 9:21 PM,   wrote: 
> >> > 
> >> > Want to create libraries ( static or dynamic ) so that that I don't 
> want 
> >> > to 
> >> > compile every time when I build my executable 
> >> > 
> >> > "github.com/everjit/Ion" <--- should not refer to code rather it 
> should 
> >> > refer to build library like .so or .dll ( in windows ) and will 
> provide 
> >> > that 
> >> > to go build command line. 
> >> > 
> >> > package main 
> >> > 
> >> > import ( 
> >> > "github.com/everjit/Ion" 
> >> > "strings" 
> >> > } 
> >> > 
> >> > func main(){ 
> >> > Ion.Invoke() 
> >> > } 
> >> > 
> >> > Please help 
> >> 
> >> To create static libraries, run `go install`.  For example, `go 
> >> install github.com/everjit/lon` . 
> >> 
> >> Ian 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Building golang libraries

2017-09-29 Thread Ian Lance Taylor
On Thu, Sep 28, 2017 at 10:02 PM,   wrote:
>
> Can you please provide command line to build executable using library
>
> go build -linkshared main.go
>
> -linkshared not supported on darwin/amd64
>
>
> doesn't work

You asked about creating either a static or dynamic library, and I
explained how to create a static library.

You are correct that building a dynamic library is not supported on
Darwin at present.  It's only supported on GNU/Linux.  It would be
nice if someone looked into that on Darwin.  I don't know how hard it
would be.

Ian


> On Friday, September 29, 2017 at 9:55:53 AM UTC+5:30, Ian Lance Taylor
> wrote:
>>
>> On Thu, Sep 28, 2017 at 9:21 PM,   wrote:
>> >
>> > Want to create libraries ( static or dynamic ) so that that I don't want
>> > to
>> > compile every time when I build my executable
>> >
>> > "github.com/everjit/Ion" <--- should not refer to code rather it should
>> > refer to build library like .so or .dll ( in windows ) and will provide
>> > that
>> > to go build command line.
>> >
>> > package main
>> >
>> > import (
>> > "github.com/everjit/Ion"
>> > "strings"
>> > }
>> >
>> > func main(){
>> > Ion.Invoke()
>> > }
>> >
>> > Please help
>>
>> To create static libraries, run `go install`.  For example, `go
>> install github.com/everjit/lon`.
>>
>> Ian
>
> --
> 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 options, visit https://groups.google.com/d/optout.

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Building golang libraries

2017-09-28 Thread desaiabhijit
Thanks Ian

Can you please provide command line to build executable using library 

go build -linkshared main.go 

-linkshared not supported on darwin/amd64


*doesn't work*

Thanks for the help

Rgds

On Friday, September 29, 2017 at 9:55:53 AM UTC+5:30, Ian Lance Taylor 
wrote:
>
> On Thu, Sep 28, 2017 at 9:21 PM,   
> wrote: 
> > 
> > Want to create libraries ( static or dynamic ) so that that I don't want 
> to 
> > compile every time when I build my executable 
> > 
> > "github.com/everjit/Ion" <--- should not refer to code rather it should 
> > refer to build library like .so or .dll ( in windows ) and will provide 
> that 
> > to go build command line. 
> > 
> > package main 
> > 
> > import ( 
> > "github.com/everjit/Ion" 
> > "strings" 
> > } 
> > 
> > func main(){ 
> > Ion.Invoke() 
> > } 
> > 
> > Please help 
>
> To create static libraries, run `go install`.  For example, `go 
> install github.com/everjit/lon` . 
>
> Ian 
>

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Building golang libraries

2017-09-28 Thread Ian Lance Taylor
On Thu, Sep 28, 2017 at 9:21 PM,   wrote:
>
> Want to create libraries ( static or dynamic ) so that that I don't want to
> compile every time when I build my executable
>
> "github.com/everjit/Ion" <--- should not refer to code rather it should
> refer to build library like .so or .dll ( in windows ) and will provide that
> to go build command line.
>
> package main
>
> import (
> "github.com/everjit/Ion"
> "strings"
> }
>
> func main(){
> Ion.Invoke()
> }
>
> Please help

To create static libraries, run `go install`.  For example, `go
install github.com/everjit/lon`.

Ian

-- 
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 options, visit https://groups.google.com/d/optout.


[go-nuts] Building golang libraries

2017-09-28 Thread desaiabhijit
Want to create libraries ( static or dynamic ) so that that I don't want to 
compile every time when I build my executable

"github.com/everjit/Ion" <--- should not refer to code rather it should 
refer to build library like .so or .dll ( in windows ) and will provide 
that to go build command line.

package main

import (
"github.com/everjit/Ion"
"strings"
}

func main(){
Ion.Invoke()
}

Please help

Thanks

-- 
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 options, visit https://groups.google.com/d/optout.