I got the “undefined reference to `SetTextColor@8′ ” error while compiling a c++ program using g++ under windows. The complete error log is here http://pastebin.com/DCwHKkeE
I guess i am missing some library file but don’t know which ones. Please help
I got the undefined reference to `SetTextColor@8′ error while compiling a c++ program using
Share
The
SetTextColorfunc is defined in gdi32.lib according to the MSDN docs, so you’ll need to linklibgdi32.ain mingw.