how can I use jamfile complie WinMain?
how can I use jamfile complie WinMain?
my cpp code:
#include
l.jay Yuan wrote:
how can I use jamfile complie WinMain? my cpp code:
#include
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)
Does bjam user-interface=gui work better? HTH, Volodya
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
bjam user-interface=gui
does not work well.
exe main : [ glob-tree *.cpp *.c : .svn ] :
<toolset>msvc:<linkflags>/SUBSYSTEM:WINDOWS ;
do work for msvc, how gcc or other?.
Is there a portable way?
2010/2/24 Reynolds, John
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
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
l.jay Yuan
-
Reynolds, John
-
Vladimir Prus