How to solve gcc error in Golang -Windows

How to solve gcc compiler error in Golang on windows machine


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.

How to solve

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

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

Also add the path to the bin folder as follows in environment variables.

C:\TDM-GCC-64\bin

How to add SublimTex context menu to open file in Windows

How to add a Open with SublimText option in Windows 10 manually ,using Windows Registry


SublimText editor is one of the coolest code editor I found, it is Mac favorite. When we install the software it as let us choose open with option, which let us open file with Sublim. How to configure this manually?

I found VS Code already included to the context menu. Let’s add the option to context menu using Windows Registry. (What is a Registry ? It keep track all the members(apps,settings etc) of the Windows).

This involves following step

  • Open Windows Registry
  • Find *\shell
  • Create new Key,value

Create New Keys,Value

Login as Admin and open Run dialog using Windows + R . Enter regedit in the Run windows. We have to find the */Shell key. The easiest way to do is type the following lines below the File menu.

Computer\HKEY_CLASSES_ROOT*\shell\

Under the shell we have to create one new key and value with a command sub key as follows.

Open with Sublime Text
  • Create another Key under the Sublim Tex as command
  • Modify the command default value on the right panel as C:\Program Files\Sublime Text 3\sublime_text.exe “%1”

Now you can open a file in Sublim using the context menu.

* Please do all these with care. Don’t attempt to change any system related entries

A minimal accounting package


I am very happy to introduce a minimal accounting package for all Windows users. It uses a minimal SQL Server and Office package.

The package offer recording income,expenses, purchase and sale using Journal entries. It can generate reports on various accounts and account group. You can download the free package from today.

Head over to our Product Page for more details