On Sun, Mar 05, 2017 at 01:47:06PM -0600, Jon Elson wrote:
> And, I get this error :
> 
> timestamp=0x00: Invalid type character `*'

The related line in the source is:
        src/hal/drivers/hal_ppmc.c:RTAPI_MP_ARRAY_INT(timestamp, MAX_BUS*8, 
"bus/slot locations of timestamped encoders");
due to a technical limitation, the second parameter to
RTAPI_MP_ARRAY_INT must be a literal number, not the result of a
calculation.  This limitation is only present for "uspace" builds of
LinuxCNC, and is unfortunately not diagnosed at compile time, but rather
only when the parameter is used.  Since MAX_BUS is 3, the fix is to
replace this instance of MAX_BUS*8 with the literal number 24, or do the
harder work of removing this limitation of RTAPI_MP_ARRAY macros on
uspace builds.

Jeff

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to