how can load .so file

492 views
Skip to first unread message

平民四月份

unread,
Apr 26, 2012, 8:25:58 AM4/26/12
to golan...@googlegroups.com, golang...@googlegroups.com
Hi all: 
      under windows box, i can use syscall.LoadLibrary/GetProcAddr/FreeLibrary to do something with dll, how can i do the same thing under linux ?

--
 Face the sea, for the spring flowers blossoming




Mike Rosset

unread,
Apr 26, 2012, 9:17:44 AM4/26/12
to 平民四月份, golan...@googlegroups.com, golang...@googlegroups.com
2012/4/26 平民四月份 <lew...@gmail.com>:
you cant, you need to use cgo and call C functions from your code. see
http://golang.org/cmd/cgo/
Reply all
Reply to author
Forward
0 new messages