On Sat, Oct 17, 2020 at 12:25 PM Thierry Fournier
wrote:
>
> I need to build go with an archive file which requires to be linked with the
> option "-Wl,--whole-archive" on linux or "-Wl,-all_load" on macos.
>
> My go file contains this code:
>
> /*
>
> #cgo darwin LDFLAGS: -L.. -Wl,-all_load -lmy
Hi,
I need to build go with an archive file which requires to be linked with
the option "-Wl,--whole-archive" on linux or "-Wl,-all_load" on macos.
My go file contains this code:
/*
*#cgo darwin LDFLAGS: -L.. -Wl,-all_load -lmy_lib*
#cgo linux LDFLAGS: -L.. -Wl,--whole-archive -lmy_lib
*/
i
The problem is that on Windows API, to keep combability with previous
versions, the maximum length for a full file name is 255 (may be a little
less).
The a directory is being created relative to
C:\Users\nil\Downloads\sanitize\temp, so the full file name is
C:\Users\nil\Downloads\sanitize\tem