BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Command Line build without lib dependencies

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools)
View previous topic :: View next topic  
Author Message
Matt Morgan
Guest





PostPosted: Tue Oct 17, 2006 6:56 pm    Post subject: Command Line build without lib dependencies Reply with quote



I am building an app with the command-line compiler that does not use the
VCL, but when I deploy I still have library dependencies (e.g. I have to
include DLLs with the app) that I can't figure out how to get away from. The
IDE allows me to build a standalone app, but I can't figure it out on the
command line.

What switches am I missing? I assume it's a linker switch or two?
Back to top
Bob Gonder
Guest





PostPosted: Tue Oct 17, 2006 8:28 pm    Post subject: Re: Command Line build without lib dependencies Reply with quote



Matt Morgan wrote:

Quote:
The IDE allows me to build a standalone app, but I can't figure it out on the
command line.

In the IDE, under Project/Options, in Compiler and also Linker
sections, there should be "command line" sections that in theory shows
you what you should be doing.

Quote:
What switches am I missing? I assume it's a linker switch or two?

That's pretty hard to answer without knowing what swiches you are
currently using.

If you can't figure it out from the IDE examples, post your bcc and
link commands.
Back to top
Matt Morgan
Guest





PostPosted: Tue Oct 17, 2006 8:39 pm    Post subject: Re: Command Line build without lib dependencies Reply with quote



"Bob Gonder" <notbg (AT) notmindspring (DOT) invalid> wrote in message
news:s6t9j2dn9djkmn1d9l5j7ofd8ae1t597t5 (AT) 4ax (DOT) com...
Quote:
That's pretty hard to answer without knowing what swiches you are
currently using.

That's a good point. :-/

My bcc32 switches are, not including include paths: -v- -O2 -tWR -tWM
My ilink32 switches are, not including libraries: -Tpe -q -Gl -aa
Back to top
Bob Gonder
Guest





PostPosted: Tue Oct 17, 2006 9:41 pm    Post subject: Re: Command Line build without lib dependencies Reply with quote

Matt Morgan wrote:
Quote:
"Bob Gonder" wrote
That's pretty hard to answer without knowing what switches you are
currently using.

That's a good point. :-/

My bcc32 switches are, not including include paths: -v- -O2 -tWR -tWM
My ilink32 switches are, not including libraries: -Tpe -q -Gl -aa

Well, yes, but it's in the details.
Probably need to see the entire commands.
Not sure what the -Gl does for you either, as I don't think you are
creating a package?

You are likely linking to stub libraries rather than static ones.

My standard BCB5 Windows (as opposed to console) switches are:

bcc32
-6 -a1 -C -d -g50 -K -O2 -Oi -Os -Ov -Q -VI- -tW -v -vi -x- -P -M

ilink32
/aa/v/x/c/C/Gn
c0w32.obj+$(FILE).obj, $(FILE), ,
import32.lib+noeh32+cw32mt.lib+wininet.lib

(noeh32 because I don't use exceptions)
(wininet is a stub lib for a MS DLL that I dynamically link at
runtime, when needed)
Back to top
Michel Leunen
Guest





PostPosted: Tue Oct 17, 2006 9:48 pm    Post subject: Re: Command Line build without lib dependencies Reply with quote

Matt Morgan wrote:

Quote:
My bcc32 switches are, not including include paths: -v- -O2 -tWR -tWM
My ilink32 switches are, not including libraries: -Tpe -q -Gl -aa

Your are building a Windows GUI app, are you? And you don't want to use
dynamic RTL, aren't you? Then remove the -tWR and replace it by a -tW
for bcc32. The rest seems ok for me.

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Back to top
Matt Morgan
Guest





PostPosted: Tue Oct 17, 2006 10:03 pm    Post subject: Re: Command Line build without lib dependencies Reply with quote

Thanks a bunch! I will try these settings on my project this evening.

The -Gl was something I tried once and never set back.

"Bob Gonder" <notbg (AT) notmindspring (DOT) invalid> wrote in message
news:ba0aj2de7hdhdlh5fi8l8i6qi5d52vulhd (AT) 4ax (DOT) com...
Quote:
Matt Morgan wrote:
"Bob Gonder" wrote
That's pretty hard to answer without knowing what switches you are
currently using.

That's a good point. :-/

My bcc32 switches are, not including include paths: -v- -O2 -tWR -tWM
My ilink32 switches are, not including libraries: -Tpe -q -Gl -aa

Well, yes, but it's in the details.
Probably need to see the entire commands.
Not sure what the -Gl does for you either, as I don't think you are
creating a package?

You are likely linking to stub libraries rather than static ones.

My standard BCB5 Windows (as opposed to console) switches are:

bcc32
-6 -a1 -C -d -g50 -K -O2 -Oi -Os -Ov -Q -VI- -tW -v -vi -x- -P -M

ilink32
/aa/v/x/c/C/Gn
c0w32.obj+$(FILE).obj, $(FILE), ,
import32.lib+noeh32+cw32mt.lib+wininet.lib

(noeh32 because I don't use exceptions)
(wininet is a stub lib for a MS DLL that I dynamically link at
runtime, when needed)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.