I just started on Windows programming, and I'm having some problems compiling simple code.
I'm using MinGW on Windows XP and when I try to compile code with either of the three functions:
My linker gives me an error:Code:TextOut() MoveToEx() LineTo()
I included <windows> just fine, so does that mean I'm missing a library file or do I need to include something else?Code:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc4SQ5gM.o:test.cpp:(.text+0x1da): undefined reference to `MoveToEx@16' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc4SQ5gM.o:test.cpp:(.text+0x1f8): undefined reference to `LineTo@12' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc4SQ5gM.o:test.cpp:(.text+0x216): undefined reference to `LineTo@12' collect2: ld returned 1 exit status
(the function DrawText() works fine)




Reply With Quote