A Code Monkey's Blog

Understand gcc -L option and library search order

In my project of porting wxGTK from GTK+2 to GTK+3, I built GTK+3 from scratch and installed it at a non-standard location. One of the painful things was that the gcc linker complained about the unknown references to glib or functions. The reason was that I had ...

Nasty bug lurked in the implicite function

I fixed a bug in C code today and it was so nasty that I think it is worth a blog post so that I can keep that in mind.

I called a function which allocated a chunk of memory with malloc() and returned a pointer pointing to that memory ...

wxGTK with gtk+3.0 preview

After about one month porting work on wxWidgets with GTK+3.0, we finally made the wx-gtk+3.0 build possible. The wx/samples/minimal is working as shown below even though the status bar doesn't show up. For preview purpose of course. Work will continue on porting drawing ...

Check syntax error of latex file with lacheck

Before you make a long wait compilation of your latex file, you can use lacheck to check the syntax error first. lacheck is probably already packaged within your tex installation.