Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-09-19 07:53:51


On 09/19/07 06:21, Achilleas Margaritis wrote:
> Larry Evans wrote:
[snip]
>> Could you provide a Makefile or something to enable the unix folks
>> to test your code. Some in-source comments would also be helpful ;)
>
> Draft version 0.3 has the following changes:
>
> 1) added a PerformanceCounter for unix systems based on gettimeofday. I
> hope it works, as I don't have a unix system to test it.
>
> 2) added comments.
Great!
>
> I have boost jam on my pc (I used it to compile boost), so I will see if
> I can get a jam file for my project (it's a matter of having free time
> to study boost jam).
I tried with the attached Jamfile, but got:
<-- cut here --
gcc.compile.c++ ../../../bin.v2/sandbox/axilmar/0.3/gcc-4.1/debug/cppgc.o
src/cppgc.cpp:130: warning: ignoring #pragma warning
src/cppgc.cpp:179: warning: ignoring #pragma warning
include/cppgc.hpp: In constructor '_address::_address(size_t, size_t,
size_t)':
include/cppgc.hpp:283: warning: '_address::<anonymous struct>::_index'
will be initialized after
include/cppgc.hpp:280: warning: 'size_t _address::<anonymous
struct>::_word'
include/cppgc.hpp:303: warning: when initialized here
include/cppgc.hpp:280: warning: '_address::<anonymous struct>::_word'
will be initialized after
include/cppgc.hpp:277: warning: 'size_t _address::<anonymous
struct>::_bit'
include/cppgc.hpp:303: warning: when initialized here
include/cppgc.hpp:277: warning: '_address::<anonymous struct>::_bit'
will be initialized after
include/cppgc.hpp:274: warning: 'size_t _address::<anonymous struct>::_1'
include/cppgc.hpp:303: warning: when initialized here
src/cppgc.cpp: In constructor 'gc::_init_::_init_()':
src/cppgc.cpp:107: error: 'create_mspace' was not declared in this scope
src/cppgc.cpp: In static member function 'static void gc::_cleanup()':
src/cppgc.cpp:126: error: 'destroy_mspace' was not declared in this scope

     "/usr/bin/g++-4.1" -ftemplate-depth-128 -O0 -fno-inline -Wall -g
-fPIC -DBOOST_ALL_NO_LIB=1 -I"../../.." -I"include" -c -o
"../../../bin.v2/sandbox/axilmar/0.3/gcc-4.1/debug/cppgc.o" "src/cppgc.cpp"

>-- cut here --

HTH.

-regards,
Larry

project
  : requirements
      <include>include
  : default-build debug
      <include>include
  ;

obj main.obj
  : ./src/main.cpp
  ;
obj dlmalloc.obj
  : ./src/dlmalloc.c
  ;
obj cppgc.obj
  : ./src/cppgc.cpp
  ;
exe main.exe
  : main.obj
    dlmalloc.obj
    cppgc.obj
  ;


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