[NXC][Compiler Error] Stringify
Posted: 25 Jun 2011, 20:46
This:
Gives me:
Code: Select all
#define STR(x) #x
task main()
{
TextOut(0, 0, STR(Hello World), 0);
Wait(2000);
}
Code: Select all
# Error: String return value expected
File "C:\Documents and Settings\All Users\Documents\MatData10\NXT-Programs\NXT-BRICXCC\NXC\MemoryManager\Stringify test.nxc" ; line 7
# Wait(
#----------------------------------------------------------
# Error: ')' expected
File "C:\Documents and Settings\All Users\Documents\MatData10\NXT-Programs\NXT-BRICXCC\NXC\MemoryManager\Stringify test.nxc" ; line 7
# Wait(
#----------------------------------------------------------
# Error: ';' expected
File "C:\Documents and Settings\All Users\Documents\MatData10\NXT-Programs\NXT-BRICXCC\NXC\MemoryManager\Stringify test.nxc" ; line 7
# Wait(2