Boost logo

Boost :

Subject: Re: [boost] [context] test on Mac OS X requested
From: Daniel Larimer (dlarimer_at_[hidden])
Date: 2011-02-07 20:59:37


On Feb 7, 2011, at 12:09 PM, Oliver Kowalke wrote:

> I've uploaded boost.context 0.6.4 - unfortunately I've no Mac OS X installation and I hope someone can test the lib on the Mac platform:
>
> ucontext_t:
> bjam toolset=gcc --debug-building
>
> fcontext_t on i386:
> bjam toolset=gcc architecture=x86 instruction-set=i686 address-model=32 context-impl=asm --debug-building
>
> fcontext_t on x86_64:
> bjam toolset=gcc architecture=x86 instruction-set=yorksfield address-model=64 context-impl=asm --debug-building
>
> thx,
> Oliver

I am still having problems with bjam, but from what I can tell these are the commands that should build your example by hand. Perhaps there is something I am missing about the commands I need to pass to gcc.

I get the same results with: g++ -o link example/link.cpp src/asm/fcontext_x86_64_sysv_macho_gas.S src/protected_stack_posix.cpp -I../..

 gcc -c -o fctx.o src/asm/fcontext_x86_64_sysv_macho_gas.S
 g++ -c -o protected_stack_posix.o src/protected_stack_posix.cpp -I../..
 g++ -o link example/link.cpp protected_stack_posix.o fctx.o -I../..

Undefined symbols:
  "_make_fcontext", referenced from:
      boost::contexts::context<boost::contexts::protected_stack>::context(void (*)(void*), boost::contexts::context<boost::contexts::protected_stack>&, void*, boost::rv<boost::contexts::protected_stack>&)in ccW4I8zo.o
  "_swap_fcontext", referenced from:
      boost::contexts::context<boost::contexts::protected_stack>::jump_to(boost::contexts::context<boost::contexts::protected_stack>&)in ccW4I8zo.o
  "_get_fcontext", referenced from:
      boost::contexts::context<boost::contexts::protected_stack>::context(void (*)(void*), boost::contexts::context<boost::contexts::protected_stack>&, void*, boost::rv<boost::contexts::protected_stack>&)in ccW4I8zo.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk