sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.32k stars 349 forks source link

time::ticks() compiler error #5

Closed KrishnaPG closed 10 years ago

KrishnaPG commented 10 years ago

In the latest build, getting the below build errors: 7>------ Build started: Project: echoserver, Configuration: Debug Win32 ------ 7> echoserver.cpp 7>e:\codebase\libsourcey\src\net\samples\echoserver\udpechoserver.h(49): error C2039: 'ticks' : is not a member of 'scy::time' 7>e:\codebase\libsourcey\src\net\samples\echoserver\udpechoserver.h(49): error C3861: 'ticks': identifier not found

In the time.h files the ticks() member is inside #if 0 so unable to reach for compiler.

For now, as a workaround, I have set PRINT_LATENCY_PACKET to be 0 and got it resolved - but the right way could be to use same compiler condition for both the ticks() and this PRINT_LATENCY_PACKET

auscaster commented 10 years ago

Thanks, time::ticks is depreciated. I fixed the echoserver and updated some of the other older samples too.