I said it didn't come with a *standalone* linker.
if you do:
g++ junk.cpp -o junk
it will compile and link. (g++ knows how to link)
If you do:
g++ -c junk,cpp -o junk.o
ld junk.o -o junk
the first command will produce an object file (junk.o)
and the second will produce an executable (using ld).
b2 issues separate compile and link commands (like the second example)
ld -v is a good place to start.
$ ld -v
@(#)PROGRAM:ld PROJECT:ld64-136
configured to support archs: armv6 armv7 armv7s i386 x86_64
LTO support using: LLVM version 3.2svn, from Apple Clang 4.2 (build 425.0.28)
You can also look at the output from running b2 - it should print the commands that it uses.
b2 -n will print the commands w/o executing them.
Thanks.
Yes. Note that there's a "command-line tools" package inside of Xcode that you'll want to install (look in preferences).
It's much easier than fussing with gcc - even if you are using MacPorts, etc.
-- Marshall
Marshall Clow Idio Software <mailto:mclow.lists@gmail.com>
A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
-- Yu Suzuki