Viewing images in a window using C Program?
===

I am trying to develop a YUV image viewer. The objective is it read YUV images and displays the image in a window.I am using C to develop this application. 

After transforming YUV information to RGB data, to view the image i am using cvShowImage and cvResize functions from OpenCV. To use this application in other systems i need opencv to be installed in them as i am using precompiled dll's. I fixed this issue by re-compiling the program with static libraries basing on the guide provided in "http://stackoverflow.com/questions/6579535/how-to-embedd-opencv-dlls-in-executable" and generated a fresh executable which is portable across machines. This resulted my application file size to grow from 100KB to 2350KB. This growth is enormous. I suspect this is because of several unnecessary functions are getting linked to my final executable

for this i used the switch Eliminate Unreferenced Data (/OPT:REF). But this did not solve anything. 

Anyways to solve this issue.?