If you just click the hammer again with the ping.c program as shown, it should build fine.
The "ping.c *" in the tab tells me the file shown was not saved and error you got was for a different file contents. Clicking the hammer always saves the file first. Also, the build output does not show ping.c as the source (just the target), and this can happen if the file is blank.
Comments
/* Blank Simple Project.c http://learn.parallax.com/propeller-c-tutorials */ #include "simpletools.h" // Include simple tools #include "ping.h" int main() // Main function { while(1) { int cmDist = ping_cm(9); print("cmDist = %d\n",cmDist); pause(200); } }I'm using the windows version of SimpleIDE v 0. 9.45 and the latest version of the Learn libraries.
Tom
If you just click the hammer again with the ping.c program as shown, it should build fine.
The "ping.c *" in the tab tells me the file shown was not saved and error you got was for a different file contents. Clicking the hammer always saves the file first. Also, the build output does not show ping.c as the source (just the target), and this can happen if the file is blank.