Boost logo

Boost :

From: Achilleas Margaritis (axilmar_at_[hidden])
Date: 2007-09-19 07:21:56


Larry Evans wrote:
> On 09/18/07 09:16, Achilleas Margaritis wrote:
> [snip]
>> I uploaded a new version in the vault which does not have __fastcall.
>> But it's noticeably slower without it, so I might introduce a macro in
>> the future for those platforms that support it.
> Good idea; however, it's still not portable because there's the
> #include "windows.h" as well as several other things:
>
> cd /home/evansl/prog_dev/boost-svn/ro/trunk/sandbox/axilmar/
> make -k ./build/main.o
> g++ -I./include -c ./src/main.cpp -o build/main.o
> In file included from ./src/main.cpp:1:
> ./include/performancecounter.hpp:5:21: error: windows.h: No such file or
> directory
> ./include/performancecounter.hpp:27: error: 'LARGE_INTEGER' does not
> name a type
> ./include/performancecounter.hpp:28: error: 'LARGE_INTEGER' does not
> name a type
> ./include/performancecounter.hpp:29: error: 'LARGE_INTEGER' does not
> name a type
> ./include/performancecounter.hpp: In constructor
> 'PerformanceCounter::PerformanceCounter()':
> ./include/performancecounter.hpp:11: error: '_frequency' was not
> declared in this scope
>
>
> 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.

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).


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