Greetings,
I’m maintaining a desktop API where the deploy is basically a binary library (one for each OS: Windows, Linux and Mac).
At this time, does Go is able to create such libraries during compile time ?
Cheers
Greetings,
I’m maintaining a desktop API where the deploy is basically a binary library (one for each OS: Windows, Linux and Mac).
At this time, does Go is able to create such libraries during compile time ?
Cheers
@christophberger thanks !
go build -buildmode=c-archive github.com\user\ExportHello
+++++++++++++
====>golang will build ExportHello.a, ExportHello.h
++++++++++++++++++++++++++++++++++++++
compile with gcc and generate dll
++++++++++++++++++++++++
gcc -shared -pthread -o Hello2.dll Hello2.c ExportHello.a -lWinMM -lntdll -lWS2_32
+++++++++++++++
and generate Hello2.dll