Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

ANT+ Mac OS X Snow Leopard

Avatar
Rank

Total Posts: 1

Joined 2010-01-24

PM

I have the ANT_Library_MacOSX_Package, and it has a compile error in Snow Leopard, but I think this works in Leopard. There error is:
gcc -Icommon -Iinc -Isoftware/ANTFS -Isoftware/System -Isoftware/Serial -c -o checksum.o ./common/checksum.c
gcc -Icommon -Iinc -Isoftware/ANTFS -Isoftware/System -Isoftware/Serial -c -o crc.o ./common/crc.c
gcc -Icommon -Iinc -Isoftware/ANTFS -Isoftware/System -Isoftware/Serial -c -o antfs_directory.o ./software/ANTFS/antfs_directory.c
g++ -Icommon -Iinc -Isoftware/ANTFS -Isoftware/System -Isoftware/Serial -c -o antfs_host.o ./software/ANTFS/antfs_host.cpp
In file included from ./software/ANTFS/antfs_host.cpp:19:
software/System/dsi_timer.hpp:49: error: default argument for parameter of type â??void* (*)(void*)â?? has type â??void*â??
make[1]: *** [antfs_host.o] Error 1
make: *** [lib] Error 2

If I change the code in dsi_timer.hpp #48 to:
//DSITimer(DSI_THREAD_RETURN (*fnTimerFunc_)(void *) = NULL, void *pvTimerFuncParameter_ = NULL, ULONG ulInterval_ = 0, BOOL bRecurring_ = FALSE);
DSITimer(DSI_THREAD_RETURN (*fnTimerFunc_)(void *) = 0, void *pvTimerFuncParameter_ = NULL, ULONG ulInterval_ = 0, BOOL bRecurring_ = FALSE);

It then compiles, and it seems to run, but I don't know if it will work.
Anyone else on Mac OS X Snow Leopard?

Pat...      

Signature

Regards… Pat…

Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

That should work.
Another option is to build using GCC 4.0.