DEV Community

MANOJ AP
MANOJ AP

Posted on • Edited on

1 1

GCC erron Golang

On windows you may got the gcc compiler error while trying to add packages like "gorm.io/driver/sqlite" in Golang. The cause for the error is that, underlying package require the gcc C compiler which is not installed on Windows PC by default.

Solution

We need to install the C compiler (gcc) on Windows machine and also need to add the path to environment variable.

The easiest way to install the mingw, is get package from tmd-gcc repository.

Also add the path to the bin folder as follows, in environment variables. (Just type env on start menu and you will get environment variables dialog)

C:\TDM-GCC-64\bin

Read More Golang guides on JSU

Top comments (0)

Tiugo image

Fast, Lean, and Fully Extensible

CKEditor 5 is built for developers who value flexibility and speed. Pick the features that matter, drop the ones that don’t and enjoy a high-performance WYSIWYG that fits into your workflow

Start now

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay