Compiler can't find objects
T Chap
Posts: 4,223
When experimenting with trying to reference various objects from a program, the only object that is found is TV. There are a number of objects in the library where they were installed, but no matter whether I lload an object into the editor or not, it still says can't find object.spin in editor tab, work folder or library. TV will compile though.
The program Serial_LCD.Spin will compile as is, which references Simple_serial.
All I did was add this to my program without writing any code that calls any of the objects methods:
OBJ
testit : "Serial_LCD" 'or sub any other object except TV
The program Serial_LCD.Spin will compile as is, which references Simple_serial.
All I did was add this to my program without writing any code that calls any of the objects methods:
OBJ
testit : "Serial_LCD" 'or sub any other object except TV
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
Thanks for straightening that out.
1. I don't quite get what the Top Level is. I thought it was my main program, but then there is a button for Identify Top level...if it ws my main program, it wouldn't need to be identified
2. Do variables and constants have to be declared ( and identical) to the oned required in the Object?
3. If a Var or Con in an object to be referred to uses a pin that conflicts with your main program, do you simply plan around that objects pin assignment? If so, what if you are referencing several objects that even conflict themselves for pin assignment, do you have to rename/resave them with workable pin assignments?
Thanks fellas
2. Each Object has its own separate and independent variables and constants. It's not like the multi-bank Stamps where all the banks share the same variable RAM.
3. You are responsible for making sure that there's no pin conflict between your Top Object and the objects it references. The Tool can't do that for you. After all, there are situations where it is desirable for multiple objects to access the same pins (e.g. I2C).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store