Am 25.06.2012 um 12:38 schrieb Viesturs Lācis: > /tmp/tmpvJHWwB/nhckins.c: In function ‘init_module’: > /tmp/tmpvJHWwB/nhckins.c:107: error: expected identifier before ‘(’ token > /tmp/tmpvJHWwB/nhckins.c:110: error: expected identifier before ‘(’ token > make[2]: *** [/tmp/tmpvJHWwB/nhckins.o] Error 1 > make[1]: *** [_module_/tmp/tmpvJHWwB] Error 2 > make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai' > make: *** [modules] Error 2 > vie@ubuntu:~/linuxcnc-dev/src/emc/kinematics$ > > The lines it is complaining are: > 106 result = hal_pin_float_new("nhckins.nhc-offset", HAL_IN, > 107 &(haldata->nhc_offset), comp_id);
-----------------------------------^-------------------^ remove those parentheses - what you want is the address of the data item, not the 'address of an expression' which '&(expression)' puports to mean, and what doesnt work, its not an lvalue -m ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users