Git Product home page Git Product logo

nlopt's People

Contributors

biotinker avatar edaniels avatar mbogus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nlopt's Issues

Proposal: vendor in nlopt

In order to make this library easier to use from most places, I'm wondering if statically linking nlopt is better. wasmer for go does this https://github.com/wasmerio/wasmer-go/blob/master/wasmer/cgo.go. It also allows doing this in a custom way https://github.com/wasmerio/wasmer-go/blob/master/wasmer/cgo_with_custom_wasmer_runtime.go. We could do something similar with the default being static and then dynamic being chosen.

I could put a PR for this but I wanted to get input first since it's a larger change with consequences.

error with recent pushes

After having go-nlopt/nlopt working for quite a while, it is now broken. Since the last commits a few days ago, after I
go get -u github.com/go-nlopt/nlopt

I get

# github.com/go-nlopt/nlopt
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_get_param':
/tmp/go-build/cgo-gcc-prolog:404: undefined reference to `nlopt_get_param'
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_has_param':
/tmp/go-build/cgo-gcc-prolog:538: undefined reference to `nlopt_has_param'
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_nth_param':
/tmp/go-build/cgo-gcc-prolog:558: undefined reference to `nlopt_nth_param'
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_num_params':
/tmp/go-build/cgo-gcc-prolog:577: undefined reference to `nlopt_num_params'
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_set_param':
/tmp/go-build/cgo-gcc-prolog:921: undefined reference to `nlopt_set_param'
collect2: error: ld returned 1 exit status

Any ideas? It has happened to all the users of the package that I make that makes use of go-nlopt/nlopt (a variety of ubuntu, fedora, installations). So it seems to be something more broad than just my own machine.

Thanks!

How to use it on Windows

HI:
I want to debug go-nlopt in the Windows environment, but I didn't run it. I don't know how to set up the running environment.

Gcc version 11.2.0

Mingw get version 0.6.2 beta 20131004-1

I downloaded NLopt. v2.6.1x86_ 64-w64-mingw32.tar.gz, but I don't know how to load it into go-nlopt. Can the author provide me with some help using it? Thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.