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