[Boost-users] How to compile boost in Borland c++ Builder 6

1,210 views
Skip to first unread message

pes nemarn

unread,
Nov 22, 2005, 3:47:46 PM11/22/05
to boost...@lists.boost.org
As subject says - I am in need of information about on how to compile
boost in Borland c++ Builder 6 on operation system Windows XP. I have
been searching everywhere, instructions are either too complicated or
badly written - in any case I still havent found the answer. I hope
you'll help me, I'm realy stuck and you guys are probably my last
resort.

Looking forward to answers or hints, cheers.

_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Russell Hind

unread,
Nov 23, 2005, 3:17:56 AM11/23/05
to boost...@lists.boost.org
pes nemarn wrote:
> As subject says - I am in need of information about on how to compile
> boost in Borland c++ Builder 6 on operation system Windows XP. I have
> been searching everywhere, instructions are either too complicated or
> badly written - in any case I still havent found the answer. I hope
> you'll help me, I'm realy stuck and you guys are probably my last
> resort.
>

bjam -sTOOLS=borland

Russell

John Maddock

unread,
Nov 23, 2005, 5:15:29 AM11/23/05
to boost...@lists.boost.org
> As subject says - I am in need of information about on how to compile
> boost in Borland c++ Builder 6 on operation system Windows XP. I have
> been searching everywhere, instructions are either too complicated or
> badly written - in any case I still havent found the answer. I hope
> you'll help me, I'm realy stuck and you guys are probably my last
> resort.

Please follow the getting started guide:
http://www.boost.org/more/getting_started.html

The toolset you need to use is "borland", so as someone else suggested, you
really just need to do a :

bjam -sTOOLS=borland stage

or

bjam -sTOOLS=borland install

depending on where you want the binaries to end up.

John.

pivk

unread,
Nov 23, 2005, 2:29:18 PM11/23/05
to boost...@lists.boost.org
oky but when i compile it i still get

failed updating 104 targets, skipped 168 targets, updated 2 targets...

And when i try to compile a program using boost i get: Mixing a dll doost
library with a static runtime is a really bed idea...

I am using multi threading in borlands compiler.

Does anyone have any idea what could be wrong?


Rayman2

Richard Jennings

unread,
Nov 24, 2005, 4:13:51 AM11/24/05
to boost...@lists.boost.org
You need to compile your project using dynamic RTL. To do this, in the
Borland IDE select the project, then Options. On the Linker tab tick
the "Use dynamic RTL" checkbox.

Depending on which version of Boost you are using, some libraries won't
compile. For v1.33.0 you might like to exclude Wave since that won't
compile:
> bjam -sTOOLS=Borland --without-wave stage

The filesystem library will complain about generating a dynamic link
library as it's not supported for this compiler: you'll have to ignore
that. You can stil use filesystem though.

Check also that you have got Spirit v 1.6.x as the version shipped with
recent Boost won't compile. See instructions here:
http://www.boost.org/libs/serialization/doc/release.html

You may also need to replace spirit.hpp in your Boost include directory.


Richard

On Wed, 23 Nov 2005 19:29:18 -0000, pivk <luka...@unimatrix-one.org>
wrote:

> oky but when i compile it i still get
>
> failed updating 104 targets, skipped 168 targets, updated 2 targets...
>
> And when i try to compile a program using boost i get: Mixing a dll doost
> library with a static runtime is a really bed idea...
>
> I am using multi threading in borlands compiler.
>
> Does anyone have any idea what could be wrong?
>
>
> Rayman2
>

John Maddock

unread,
Nov 24, 2005, 5:39:37 AM11/24/05
to boost...@lists.boost.org
> failed updating 104 targets, skipped 168 targets, updated 2 targets...

Which targets? I suspect Borland's compiler is too broken to compile all of
Boost.

> And when i try to compile a program using boost i get: Mixing a dll
> doost library with a static runtime is a really bed idea...

It is. If you want to use Boost as a dll then YOU MUST USE A DLL RUNTIME,
this is a general compiler requirement, not a Boost one. Select a dll
runtime from the C++ Builder IDE. However: my understanding is that TeamB
recomend static linking under all curcumstances for this compiler, so you
want to switch to use static Boost libs.

pivk

unread,
Nov 24, 2005, 10:52:31 AM11/24/05
to boost...@lists.boost.org

----- Original Message -----
From: "Richard Jennings" <richard....@teraview.com>
To: <boost...@lists.boost.org>
Sent: Thursday, November 24, 2005 10:13 AM
Subject: Re: [Boost-users] How to compile boost in Borland c++ Builder 6


> You need to compile your project using dynamic RTL. To do this, in the
> Borland IDE select the project, then Options. On the Linker tab tick
> the "Use dynamic RTL" checkbox.
>
> Depending on which version of Boost you are using, some libraries won't
> compile. For v1.33.0 you might like to exclude Wave since that won't
> compile:
>> bjam -sTOOLS=Borland --without-wave stage
>
> The filesystem library will complain about generating a dynamic link
> library as it's not supported for this compiler: you'll have to ignore
> that. You can stil use filesystem though.
>
> Check also that you have got Spirit v 1.6.x as the version shipped with
> recent Boost won't compile. See instructions here:
> http://www.boost.org/libs/serialization/doc/release.html
>
> You may also need to replace spirit.hpp in your Boost include directory.
>
>
> Richard
>
> On Wed, 23 Nov 2005 19:29:18 -0000, pivk <luka...@unimatrix-one.org>
> wrote:
>
>> oky but when i compile it i still get
>>
>> failed updating 104 targets, skipped 168 targets, updated 2 targets...
>>
>> And when i try to compile a program using boost i get: Mixing a dll doost
>> library with a static runtime is a really bed idea...
>>
>> I am using multi threading in borlands compiler.
>>
>> Does anyone have any idea what could be wrong?
>>
>>
>> Rayman2
>>
>
>
Thanks now it is working :D but now i am getting error Miltiple declaration
for 'element<N,T>' (line 156 in tuple_basic.hpp) and Eariler declaration of
'element<N,T>'(line 141 in tuple_basic.hpp)

Any idea?

John Maddock

unread,
Nov 24, 2005, 12:17:59 PM11/24/05
to boost...@lists.boost.org
> Thanks now it is working :D but now i am getting error Miltiple
> declaration for 'element<N,T>' (line 156 in tuple_basic.hpp) and
> Eariler declaration of 'element<N,T>'(line 141 in tuple_basic.hpp)
>
> Any idea?

The tuple tests all work for me with Borland 5.5.1 and 5.6.4, so I'm
confused, are you using a weird Borland C++ version? Unpatched maybe? What
does __BORLANDC__ report: it should be 0x564.

John.

pivk

unread,
Nov 24, 2005, 12:27:02 PM11/24/05
to boost...@lists.boost.org

----- Original Message -----
From: "John Maddock" <jo...@johnmaddock.co.uk>
To: <boost...@lists.boost.org>
Sent: Thursday, November 24, 2005 6:17 PM
Subject: Re: [Boost-users] How to compile boost in Borland c++ Builder 6


>> Thanks now it is working :D but now i am getting error Miltiple
>> declaration for 'element<N,T>' (line 156 in tuple_basic.hpp) and
>> Eariler declaration of 'element<N,T>'(line 141 in tuple_basic.hpp)
>>
>> Any idea?
>
> The tuple tests all work for me with Borland 5.5.1 and 5.6.4, so I'm
> confused, are you using a weird Borland C++ version? Unpatched maybe?
> What
> does __BORLANDC__ report: it should be 0x564.
>
> John.
>
>

i am using borland c++ 6 builder, i downloaded it from www.borland.com some
trial version.

John Maddock

unread,
Nov 24, 2005, 2:20:16 PM11/24/05
to boost...@lists.boost.org
> i am using borland c++ 6 builder, i downloaded it from
> www.borland.com some trial version.

It's probably the unpatched version then: if you buy the full product be
sure to register and get Update 4, without it the compiler is rather broken
as far as Boost is concerned.

John.

pivk

unread,
Nov 24, 2005, 2:42:39 PM11/24/05
to boost...@lists.boost.org
oky thanks i will try too find it :S but that wont be easy because i am
using cracked version :S

thanx again

LP
----- Original Message -----
From: "John Maddock" <jo...@johnmaddock.co.uk>
To: <boost...@lists.boost.org>
Sent: Thursday, November 24, 2005 8:20 PM
Subject: Re: [Boost-users] How to compile boost in Borland c++ Builder 6


pivk

unread,
Nov 25, 2005, 10:14:42 AM11/25/05
to boost...@lists.boost.org
when i am trying to link my project i get

Build
[Linker Fatal Error] Fatal: Unable to open file
'LIBBOOST_DATE_TIME-BCB-MT-1_33.LIB'

and idea what could be wrong?

does anyone have this file?

can someone send it to luka.pivk[at]gmail.com

LP

Russell Hind

unread,
Nov 25, 2005, 11:31:33 AM11/25/05
to boost...@lists.boost.org
pivk wrote:
>
> Build
> [Linker Fatal Error] Fatal: Unable to open file
> 'LIBBOOST_DATE_TIME-BCB-MT-1_33.LIB'
>
> and idea what could be wrong?
>
> does anyone have this file?
>

It was build by the 'bjam' process. Its final location depends on
whether you specified 'install' or 'stage' when invoking bjam.

You need to add the folder where this file is located to the lib paths
(under directories/conditionals in project options).

Cheers

Russell

pivk

unread,
Nov 25, 2005, 11:32:15 AM11/25/05
to boost...@lists.boost.org
yes but there is a problem that i dont have this file ::S

LP

Victor A. Wagner Jr.

unread,
Nov 25, 2005, 12:47:22 PM11/25/05
to boost...@lists.boost.org
At 09:32 2005-11-25, pivk wrote:
>yes but there is a problem that i dont have this file ::S

did you build the boost libraries? if so, how did you do it?
Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
"There oughta be a law"

pivk

unread,
Nov 25, 2005, 12:56:46 PM11/25/05
to boost...@lists.boost.org
first i builded boostjam and then bjam -sTOOLS="borland" install..

Victor A. Wagner Jr.

unread,
Nov 26, 2005, 1:18:26 AM11/26/05
to boost...@lists.boost.org
At 10:56 2005-11-25, pivk wrote:
>first i builded boostjam and then bjam -sTOOLS="borland" install..

I'm not up on the borland products, I note that there are some other
tools files for borland:
borland-5_5_1-tools.jam
borland-5_6_4-tools.jam

perhaps one of those would be more appropriate


>----- Original Message -----
>From: "Victor A. Wagner Jr." <va...@rudbek.com>
>To: <boost...@lists.boost.org>; <boost...@lists.boost.org>
>Sent: Friday, November 25, 2005 6:47 PM
>Subject: Re: [Boost-users] LIBBOOST_DATE_TIME-BCB-MT-1_33.LIB
>
>
> > At 09:32 2005-11-25, pivk wrote:
> >>yes but there is a problem that i dont have this file ::S
> >
> > did you build the boost libraries? if so, how did you do it?
> >
> >

[deleted]

Russell Hind

unread,
Nov 28, 2005, 3:42:50 AM11/28/05
to boost...@lists.boost.org
Victor A. Wagner Jr. wrote:
> At 10:56 2005-11-25, pivk wrote:
>> first i builded boostjam and then bjam -sTOOLS="borland" install..
>
> I'm not up on the borland products, I note that there are some other
> tools files for borland:
> borland-5_5_1-tools.jam
> borland-5_6_4-tools.jam
>

I think it automatically picks up the correct 1. I just use

bjam -sTOOLs="borland" stage

That puts them in the boost/stage folder. I think install may create a
folder in the root of C and put them in there. You'll have to look
around or read the instructions on the getting started page as to where
the files will be done.

But the whole point of building boost using bjam is to generate these
lib files, so if you've built it correctly, then you have them. I you
don't have them, you haven't built it correctly.

Cheers

Russell
Reply all
Reply to author
Forward
0 new messages