
WinMain requires the windows subsystem, bjam links by default to the console subsystem. This got me for a while as well.
Try it with the following
exe main : [ glob-tree *.cpp *.c : .svn ] : <toolset>msvc:<linkflags>/SUBSYSTEM:WINDOWS ;
John Reynolds
Aircraft Management Technologies Limited
Registered in Ireland, No.337561
Registered office: 1 The Green, Malahide, Co.Dublin, Ireland
Tel: + 353 1 8061000
Fax:+ 353 1 8061025
John.Reynolds@airmantech.com / John.Reynolds@flightman.com
www.airmantech.com / www.flightman.com
THE INFORMATION IN THIS E-MAIL IS CONFIDENTIAL AND MAY BE LEGALLY PRIVILEGED. IT IS INTENDED SOLELY FOR THE ADDRESSEE. ACCESS TO THIS E-MAIL BY ANYONE ELSE IS UNAUTHORISED. IF YOU ARE NOT THE INTENDED RECIPIENT, ANY DISCLOSURE, COPYRIGHT, DISTRIBUTION OR ANY ACTION TAKEN OR OMITTED TO BE TAKEN IN RELIANCE ON IT, IS PROHIBITED AND MAY BE UNLAWFUL.
-----Original Message-----
From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of l.jay Yuan
Sent: 24 February 2010 04:31
To: boost-users@lists.boost.org
Subject: [Boost-users] how can I use jamfile complie WinMain?
how can I use jamfile complie WinMain?
my cpp code:
#include