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 

Quick question about using -tW* and -W* switches

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





PostPosted: Fri Jan 02, 2004 9:45 pm    Post subject: Quick question about using -tW* and -W* switches Reply with quote



Hi again,

Just a quick question: if I want to compile a windows multithreaded
application that also links to the runtime library dynamically do I need
to compile with the switches like this?

bcc32 -tWR -WM mysource.cpp

Reason I ask is because when I try to put the switches all together it
complains about invalid switches/options used:

bcc32 -tWMR mysource.cpp

and

bcc32 -tWRM mysource.cpp

So is the first method I'm describing the correct way to do what I'm
looking for? Any clarification on this is appreciated.

Thanks
Back to top
Ed Mulroy [TeamB]
Guest





PostPosted: Fri Jan 02, 2004 11:28 pm    Post subject: Re: Quick question about using -tW* and -W* switches Reply with quote



Quote:
...do I need to compile with the switches like this?

bcc32 -tWR -WM mysource.cpp

Yes.

I would put the -tWR or -WR to the right, closest to the file names.

There are some combinations of letters which work but not all.

These combinations work:

W WR
WC WCR
WD WDR
WM

(each preceeded by one of - -t / or /t)

WM says multi-tasking but implies GUI. For a GUI app you'd probably get
away with it on the right, but for a DLL or console mode you might not. It
is better to get in the habit of putting WM on the left.

.. Ed

Quote:
Vivi Orunitia wrote in message
news:Xns9464B4A5F3D3CViviblackmagevillage (AT) 207 (DOT) 105.83.66...

Just a quick question: if I want to compile a windows multithreaded
application that also links to the runtime library dynamically do I need
to compile with the switches like this?

bcc32 -tWR -WM mysource.cpp

Reason I ask is because when I try to put the switches all together it
complains about invalid switches/options used:

bcc32 -tWMR mysource.cpp

and

bcc32 -tWRM mysource.cpp

So is the first method I'm describing the correct way to do what I'm
looking for? Any clarification on this is appreciated.




Back to top
Bob Hairgrove
Guest





PostPosted: Fri Jan 02, 2004 11:44 pm    Post subject: Re: Quick question about using -tW* and -W* switches Reply with quote



On 2 Jan 2004 14:45:10 -0700, Vivi Orunitia
<Vivi (AT) blackmagevillage (DOT) com> wrote:

Quote:
Hi again,

Just a quick question: if I want to compile a windows multithreaded
application that also links to the runtime library dynamically do I need
to compile with the switches like this?

bcc32 -tWR -WM mysource.cpp

Reason I ask is because when I try to put the switches all together it
complains about invalid switches/options used:

bcc32 -tWMR mysource.cpp

and

bcc32 -tWRM mysource.cpp

So is the first method I'm describing the correct way to do what I'm
looking for? Any clarification on this is appreciated.

Thanks

The switches are not necessarily combinable, so try this instead:

-tWM = multi-threaded (-tWM- if not)
-tWR = use RTL (-tWR- if not ... note that in BC++Builder, you should
always use multi-threaded model if using VCL)

Note that there are different .obj and/or .lib files you need to link
with depending on your choice of threading options.

HTH
--
Bob Hairgrove
[email]NoSpamPlease (AT) Home (DOT) com[/email]

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.