Another possible course of action is to have all the logic of generating these lines embedded inside a 'go generate' program.
That's what has been done in go-python/gopy for example. -s -------- Original Message -------- On Aug 10, 2020, 06:18, wrote: > On Sunday, August 9, 2020 at 9:56:43 AM UTC-7, Miki Tebeka wrote: > >> Is there a way to pass include path dynamically to cgo? > > The easiest way is to generate the include file and just reference it from > cgo. It looks like your code needs to have a Makefile anyway. > > -- > 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. > To view this discussion on the web visit > [https://groups.google.com/d/msgid/golang-nuts/bded583f-4c18-4f65-ad6e-b5ccf40ed7c2o%40googlegroups.com](https://groups.google.com/d/msgid/golang-nuts/bded583f-4c18-4f65-ad6e-b5ccf40ed7c2o%40googlegroups.com?utm_medium=email&utm_source=footer). -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/AF7GYAoz-3hdoN23zaWQMtNjdD-b-NL0AREycL5ayPtHYm08ps_mtbgOixo_ruE5RkWHOiqeNKhUMWo3KQxF0-c1IBbzfcX4pju26LS6t7s%3D%40sbinet.org.