0

I had copied the boost directory of a colleague. It was running fine out of the box as is.

But now I have a problem, I have some new code using boost.signals that compiles well but doesn't link since I don't have the libboost_signals-vc100-mt-gd-1_48.lib file in my bin directory. (I already have thread, regex and some other library binaries, but not the signals one).

So I have started looking at the Boost Install procedure so as to build Boost.Signals2

And whether I want to install Boost.Build or build Boost.Signals2, the batch script bootstraps.bat makes my MS-DOS command window crash without error message. It takes about 10 seconds to do so after writing "Bootstrapping the build engine" or "Bootstraping Boost.Build engine".

rem install Boost.Build
cd "Program Files\boost_1_48_0\boost_1_48_0"
cd tools\build\v2\.
bootstrap.bat
b2 install --prefix="C:\Boost.Build"

or

rem build signals2
cd "Program Files\boost_1_48_0\boost_1_48_0"
bootstrap
./b2 signals2 variant=debug link=static threading=multi address-model=64

I don't know where to start investigating ? Any idea ? Have I forgotten something obvious ?

Stephane Rolland
  • 38,876
  • 35
  • 121
  • 169
  • Boost.Signals2 is header-only, you can't build it separately. Probably you mean the older Boost.Signals? – Igor R. Oct 23 '12 at 14:39
  • this is my error message when linking: LINK : fatal error LNK1104: cannot open file 'libboost_signals-vc100-mt-gd-1_48.lib' – Stephane Rolland Oct 23 '12 at 14:42
  • Do you mean that I wrote code that needs signals v1 binaries, whereas I only wanted to use signals v2. I'm gonna check that. – Stephane Rolland Oct 23 '12 at 14:43
  • but **anyway**, if I wanted to install something else (for example Boost.Python) I would love to have bootstrap.bat not to crash :-) – Stephane Rolland Oct 23 '12 at 14:45
  • you copied the directory from another machine; perhaps rebuilding everything with 'b2 -a' will help. worst case download a fresh copy. – Anonymous Coward Oct 23 '12 at 15:01
  • @Stephane Rolland First of all, your code uses Signals, not Signals2, so check that out. As for bootsrap crash - you don't provide any relevant details (how does it "crash"? doesn't it work without explicit invocation of bootstrap?). Besides, the syntax of b2 line seems to be incorrect, it should be --with-signals. – Igor R. Oct 23 '12 at 15:05
  • @JohnDibling yes it is indeed 1.48. My colleagues said that it is the lattest version with which we could use boost.log (that is not part of the boost package yet). – Stephane Rolland Oct 23 '12 at 15:31
  • @AnonymousCoward i'm gonna try b2 -a – Stephane Rolland Oct 23 '12 at 15:32
  • @IgorR. Well I really don't have any additionnal information as I wrote it. launching bootstrap.bat crashes the cmd-line without any error messages. I haven't tried without calling bootstrap.bat since I'm asked to call it in "Boost Get Started". But I'm gonna try without. Why should I use the flag "--with-signals" ? it is not documented here http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html – Stephane Rolland Oct 23 '12 at 15:35
  • @Stephane Rolland as for the syntax - sorry, I wasn't updated, with b2 your syntax seems to be ok. – Igor R. Oct 23 '12 at 15:39
  • @IgorR. Many thanx! At some places I was using signal v1 and at other places signal v2. I put everything in order and now it links ok with only signal v2. I will come back later to check this bootstrap story. – Stephane Rolland Oct 23 '12 at 16:45

0 Answers0