go-nlopt / nlopt

A NLopt implementation for Go
MIT License
10 stars 4 forks source link

error with recent pushes #1

Closed blackrim closed 3 years ago

blackrim commented 3 years ago

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!

blackrim commented 3 years ago

Nevermind, I see you updated to 2.7. With the nlopt update all is well. Sorry to bother