
Larry Evans wrote:
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
Ah yes, there was a problem with an ifdef. I posted the fixed version in the vault. I am downloading Fedora Core and I will install it under VMWare, so as that I can compile the code for Linux as well.