Boost logo

Boost Users :

Subject: Re: [Boost-users] how can I use jamfile complie WinMain?
From: Reynolds, John (John.Reynolds_at_[hidden])
Date: 2010-02-24 10:29:04


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_at_[hidden] / John.Reynolds_at_[hidden]
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_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of l.jay Yuan
Sent: 24 February 2010 04:31
To: boost-users_at_[hidden]
Subject: [Boost-users] how can I use jamfile complie WinMain?

how can I use jamfile complie WinMain?
my cpp code:

#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine, int nCmdShow)
{
   return 0;
}

my jamfile:

exe main : [ glob-tree *.cpp *.c : .svn ]
;

install . : main : <install-type>EXE ;

compile use msvc7.1, I got error LNK2019(___tmainCRTStartup)

can bjam do it?
someone help me, please, thanks vey much!!!
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net