On 10/8/2015 05:03, Mack Paul wrote:
> Hi Stefan:
> I did the following:
> g++     -o dist/Debug/MinGW-Windows/cppapplication_1 
> build/Debug/MinGW-Windows/main.o -lcomdlg32 -v
> but I got the same result.

g++     -o dist/Debug/MinGW-Windows/cppapplication_1
build/Debug/MinGW-Windows/main.o -lcomdlg32 -lgdi32

Use MSDN to find out what to link:
undefined reference to `_imp__TextOutA@20' <- search for TextOut
MSDN says gdi32.lib, so add -lgdi32 to your link command.

> I wonder if it's necesssary to include the binary files of microsoft sdk??
> 

No.

Attachment: 0xD4EBC740.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports 
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to