Unable to open file Simpletools.h
I'm trying to write some very simple code by I get this error when I try to include this library. It probably has something to do with the path the compiler uses to access the library. Example programs don't seem to have an issue opening it. I've tried reading thru documentation to see what I'm doing wrong. Is there some comprehensive documentation to explain this?
Comments
Can you get access to the file in the downloaded folder?
The error
Project Directory: C:/Users/John/Documents/SimpleIDE/Learn/Examples/PropBOE_Spin_Leds_20120130/
openspin.exe -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/ 1 Blink Light.spin
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2014 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.71 Compiled on Nov 16 2014 09:27:04
Compiling...
1 Blink Light.spin
1 Blink Light.spin(4:5) : error : Expected "=" "[" "," or end of line
Line:
int Main()
Offending Item: Main
1 Blink Light.spin:1: error: Unable to open file simpletools.h
My Code
#include "simpletools.h"
int Main()
{
repeat
pin.High(9)
wait(100)
pin.Low(9)
wait(900)
}
in your case it should be: C:/Users/John/Documents/SimpleIDE/Learn/Simple Libraries/
With Windows Explorer can you follow that path and verify it is correct?
EDIT: If you want to use C try creating a C project, and use this code:
Be sure you are also using the semicolon after your commands as Dave shows in his code (above).