2009/7/23 fmingu <fmingu@163.com>
Does this error occur due to the use of lambda expression?

No.
 
Can anyone with kindness help me?

Check that you are linking to dll.lib (import library of your dll).
Check that BUILDING_DLL is defined while building the dll and not defined while building the executable.

Roman Perepelitsa.