Article View: borland.public.cppbuilder.deployment
Article #113Re: stand alone app
From: AlisdairM
Date: Wed, 22 Mar 2006 13:09
Date: Wed, 22 Mar 2006 13:09
44 lines
2913 bytes
2913 bytes
William Riley wrote: > I am new to Windows and Borland C++ (using the Personal Edition) hope > this is a good place to ask this question. I would like to > distribute an app file that the user can put on his system and run > without having to install any of the Borland *.bpl or DLLs (stand > alone app). From the C++ Builder help files it would seem that this > is possible. Basically all I can find is that you can add to your > project the corresponding *.lib files and build the project. But this > does not seem to work. I am not quite sure what the "Build with > runtime packages" means on the Project|Options|Packages page, but if > I uncheck it I get a rather rude Fatal Linker Termination error. So > currently the app that I want to distribute always says it needs the > vcl60.bpl and rtl60.bpl and it runs fine when installed on the target > system. Note unchecking "Use dynamic RTL" gets rid of the need to > supply BORLNDMM.DLL with the app. Now what are the corresponding > *.lib for vcl60.bpl and rtl60.bpl? Looking in the lib directory where > the help says to look I find vcl.lib and rtl.lib under the Release > and Debug folders. From other statements in the help files I assume > that this covers vcl60.bpl and rtl60.bpl but adding these *.lib's > (either from the Release or Debug folders) to my project and building > does not change the need to deploy vcl60.bpl and rtl60.bpl on the > target system. I think I must be missing something since I cannot > figure out how to produce a stand alone console app. Adding the > obvious *.lib file to the project makes no difference either. Any > help or suggestions appreciated. There are two project options you need to set to finish this <g> On the Project | Options | Linker page you must UNcheck the box 'use dynamic RTL' On the Packages page, you must also uncheck the box for "build with runtime packages" After this you may get some linker errors about missing symbols. If so, you need to add the libraries where these can be found. These options should only be necessary for the final .EXE project, although we apply them to all our library projects as well, just to be consistent/safe. -- AlisdairM(TeamB)
Technical Details
Message-ID:
<44215aac@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4419c659$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,71d6e5ec218aebd1 X-Google-Attributes: gidf8e54,public X-Google-Language: ENGLISH,ASCII-7-bit From: "AlisdairM" <alisdair.meredith@uk.renaultf1.com> Subject: Re: stand alone app Newsgroups: borland.public.cppbuilder.deployment References: <4419c659$1@newsgroups.borland.com> User-Agent: XanaNews/1.17.6.6 NNTP-Posting-Host: 195.153.139.2 Message-ID: <44215aac@newsgroups.borland.com> Date: 22 Mar 2006 06:09:48 -0700 X-Trace: newsgroups.borland.com 1143036588 195.153.139.2 (22 Mar 2006 06:09:48 -0700) Lines: 44 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail