building boost iostreams

This is a discussion on building boost iostreams within the C++ Programming forums, part of the General Programming Boards category; Hello I've been trying to get boost compiled with zlib on windows. I have win xp, MSVC 2005. Boost is ...

  1. #1
    l2u
    l2u is offline
    Registered User
    Join Date
    May 2006
    Posts
    630

    building boost iostreams

    Hello

    I've been trying to get boost compiled with zlib on windows.
    I have win xp, MSVC 2005.
    Boost is located in c:\cpp libraries\boost
    Zlib is located in c:\cpp libraries\zlib123

    I have tried to build boost iostreams with running bjam from
    libs\iostreams\build as instructions say..
    The command line I used:

    bjam toolset=msvc "-sZLIB_SOURCE=C:\cpp libraries\zlib123"

    when I do this it seems like nothing is properly built.
    The result I get says: ..failed updating 12 targets.. skipped 16 targets...

    I wonder what am I doing wrong?
    I want to build boost iostreams so that I can use them with bzip..

    Thanks for help

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Your path has a space in it. Perhaps that is causing a problem? I don't see how, but . . .

    Maybe instead of "-sZLIB_SOURCE=C:\cpp libraries\zlib123" you need to pass "-sZLIB_SOURCE=C:\cpp libraries\zlib123\zlib123\bin" or something? What does the directory structure look like there? Did you go "extract all" or "extact to directory . . ." or what?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    l2u
    l2u is offline
    Registered User
    Join Date
    May 2006
    Posts
    630
    Hey mate.. Yes, space was the cause of problem. Shouldnt boost support them?

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Many Windows command-line tools have trouble with spaces. It's just the way it is; it's the way the Windows shell works. It's not boost-specific or anything. I myself never create files with spaces in their name for just that reason.

    You almost never have those sorts of problems under Linux, because a space can be represented as "\ ".
    Code:
    $ ls /mnt/win/Documents\ and\ Settings
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. boost building troubles
    By Darkinyuasha1 in forum C++ Programming
    Replies: 8
    Last Post: 07-01-2008, 09:50 PM
  2. boost iostreams is_open()
    By l2u in forum C++ Programming
    Replies: 0
    Last Post: 02-21-2008, 09:00 AM
  3. building boost libraries
    By l2u in forum C++ Programming
    Replies: 3
    Last Post: 05-09-2007, 08:34 AM
  4. boost iostreams and compression
    By l2u in forum C++ Programming
    Replies: 2
    Last Post: 05-04-2007, 06:11 AM
  5. Building boost
    By Mario F. in forum Tech Board
    Replies: 8
    Last Post: 06-28-2006, 08:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21