On Thu, Apr 30, 2020 at 10:06 AM wrote:
>
> https://golang.org/cmd/cgo/
> > When the cgo directives are parsed, any occurrence of the string ${SRCDIR}
> > will be replaced by the absolute path to the directory containing the
> > source file.
>
> So this might be what you need.
>
> #cgo LDFLAGS:
https://golang.org/cmd/cgo/
> When the cgo directives are parsed, any occurrence of the string
${SRCDIR} will be replaced by the absolute path to the directory containing
the source file.
So this might be what you need.
#cgo LDFLAGS: -L${SRCDIR}/. -lperson
On Thursday, 30 April 2020 05:19:36
That was it. It's actually
export LD_LIBRARY_PATH=${PWD}
On Thursday, April 30, 2020 at 1:05:58 AM UTC-6, Miki Tebeka wrote:
>
> IMO the #cgo directive is just building the executable, not for running it.
> You can set the LD_LIBRARY_PATH environment variable before running the
> exeutable
>
IMO the #cgo directive is just building the executable, not for running it.
You can set the LD_LIBRARY_PATH environment variable before running the
exeutable
LD_LIBRARY_PATH=${PWD} ./app
On Thursday, April 30, 2020 at 7:19:36 AM UTC+3, Dean Schulze wrote:
>
> I'm following a simple example
>