Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

cgo

How do you statically link a c library in go using cgo?

May 7, 2023 by Tarik

Turns out my code is 100% fine; it was a copy of Go 1.0; under go 1.1 this works. Under go 1.0, it doesn’t. (it’s a bit lame answering my own question, I know; but the ‘use -L -l answers below aren’t right either; it had nothing to do with that). A working solution example … Read more

Categories go Tags cgo, go Leave a comment

exec: “gcc”: executable file not found in %PATH% when trying go build

December 9, 2022 by Tarik

If you are running Ubuntu do: apt-get install build-essential This solved the problem. It installs the gcc/g++ compilers and libraries.

Categories windows Tags build, cgo, go, hyperledger-fabric, windows Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa