anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.58k stars 630 forks source link

missing package 'main' when trying to build it as Go library #918

Closed tanishbajaj101 closed 8 months ago

tanishbajaj101 commented 8 months ago

go.mod file is located in root directory but all other files have package 'torrent'. when i go /cmd/torrent/ i find package 'main' how do i build c-shared libsum.so for this

anacrolix commented 8 months ago

I don't think you build c-shared for main packages. You most likely want to c-shared the root package, which is intended for use as a library.