[go-nuts] cross compile windows from linux failed with -H=windowsgui

2017-03-13 Thread xrfang
I use Kubuntu 16.10, when compile a project over to windows, I get this 
error:

crosscall2: adddynsym: unsupported binary format 
_cgo_panic: adddynsym: unsupported binary format 
_cgo_topofstack: adddynsym: unsupported binary format 
adddynlib: unsupported binary format 
adddynlib: unsupported binary format

The command I used to compile was:

export GOOS=windows
go build -ldflags "-H=windowsgui" -o  main.go

 if I remove "-H=windowsgui" the problem is gone.  What I wanted is to get 
rid of console window while run my program on Windows.  I found the 
solution here:

http://stackoverflow.com/questions/23250505/how-do-i-create-an-executable-from-golang-that-doesnt-open-a-command-cmd-wind

Unfortunately it didn't work.  Any ideas?

Thanks a lot.

xrfang

-- 
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] Re: Bloom filter

2016-11-28 Thread xrfang
Hi Will,

Could you please explain the memory characteristics of your implementation? 
i.e. given boom.New(m, k), how much memory will the filter consume? Is the 
memory consumption related to number of items in the filter? If 
appropriate, function such as 

func EstimateParameterByMemory(mem int) (m, k int)
func (f *BloomFilter) MemoryConsumption() int

will be very useful in my case.

Thank you very much!

xrfang

在 2011年5月21日星期六 UTC+8下午10:24:05,Will Fitzgerald写道:
>
> I've written an implementation of Bloom filters, using the BitSet package. 
> You can find it at
>
> https://github.com/willf/bloom
>
> As usual, comments welcome. 
>
> Will
>

-- 
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.