Category: Learning in progress

Linking Boost library from Qt application with MinGW

While integrating NetCom’s app_gui module (Qt app) with GLog module that relies on Boost library, I encountered a long long list of linking errors: g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o .\NetCom.exe .\main.o .\MainWindow.o.\TestCaseDialog.o .\RunTestPlanDialog.o .\MsgCommDialog.o .\moc_MainWindow.o .\moc_TestCaseDialog.o .\moc_RunTestPlanDialog.o .\moc_MsgCommDialog.o -L"C:\Qt\2010.02.1\qt\lib" -L"C:\boost_1_41_0\stage\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4 -llibboost_date_time-mt-d C:\boost_1_41_0\stage\lib/libboost_date_time-mt-d.lib(greg_month.o): In function `ZN5boost9gregorian10greg_month17get_month_map_ptrEv': c:/boost_1_41_0/libs/date_time/src/gregorian/greg_month.cpp:36: undefined reference […]

Tuesday June 8th, 2010 in C++, Learning in progress, NetCom, Project | Comments Off

Build failure with Qt makefile: undefined reference to `_Unwind_Resume’

While building NetCom’s app_gui module through command line with the makefile auto-generated by Qt, I encountered following error: undefined reference to `_Unwind_Resume’ Just in case anyone makes the same mistake, here is the tip: makefile generated by Qt requires some environment variables to be set up beforehand.  In another word, if you run build from […]

Sunday April 4th, 2010 in C++, Learning in progress, NetCom, Project, Sharing | Comments Off

Conceptual map between SVN and ClearCase UCM

Learnt a bit from new job; Asked a bit at; Digged a bit around Internet; So here is the summary of my understanding on this topic. And … useful list of ClearCase commands.

Tuesday March 30th, 2010 in Learning in progress | Comments Off

Picking up Rational ClearCase

I just landed on a new job, which requires me to use ClearCase for day to day work. Prior to this, I’d heard a lot of bad things about this monster, and I used to think that I’ll never want to put my hand on it. By quickly googling around you will easily find that […]

Sunday March 14th, 2010 in Learning in progress | Comments Off

Hits 100th word

I have been taking a more proactive approach to improve my English, since January. Today my list of vocabulary has just reach 100th! There is still a long way to go… through small but frequent steps. I hope by February 2011 the list will grow to 1000 words.

Sunday March 7th, 2010 in Learning in progress | Comments Off

First post in 2010

Stepping into a new year, here are the topics that I have studied/refreshed over the past three weeks: Cleared some doubts that I was having regarding ‘static‘ keyword in C++. It may affect certain concepts in C++ such as namespace, storage duration, and linkage. Studied C++ exception handling more in depth: exception handling for constructor […]

Thursday January 21st, 2010 in Learning in progress | Comments Off

C++ library linking

While porting NetCom Simulator’s GLog module from Windows to Linux, I found all my library linking, i.e. to Boost C++ libraries, are broken. After some study and experiment works, I realize that library linking works slightly different on the two platforms. Here is my finding base on the experiment as well as ideas received from […]

Tuesday December 29th, 2009 in C++, Learning in progress, Sharing | Comments Off

Setting up BandLuxe C179 3.5G modem on Kubuntu 8.10

Recently I just cancelled my fixed line broadband and got my 2Mb mobile broadband plan, as I rarely able to fully utilize the 8Mb bandwidth. With this switch, I manage to save about $30 per month, inclusive of the cost of home telephone line. Bundled with this new plan from SingTel is a BandLuxe C179 […]

Wednesday December 23rd, 2009 in Learning in progress, Linux (general), Sharing | 2 Comments »

GLog module is thread safe now

Finally, the GLog module can be use safely from multiple threads concurrently. This is achieved by using the Boost.Asio library, which is one of the options mentioned in previous post. Asio provides some convenient utilities, such as io_service and strand, which makes implementation of asynchronous I/O and synchronous access to shared resources relatively easy. In fact, these are the missing […]

Sunday December 20th, 2009 in C++, Learning in progress, NetCom, Project | Comments Off

Journey to a threadsafe GLog module

I’m still in the progress of trying to make GLog module threadsafe. Right now, log output to screen still having multithreading issue, which must be solve no matter how. Below is what has been happening up to this point: Knowing that std::cout is not threadsafe, have been looking for alternative, without applying lock on every […]

Saturday December 12th, 2009 in C++, Learning in progress, NetCom, Project | 1 Comment »