PDA

View Full Version : cant find unit classes used by project1



slenkar
23-11-2010, 03:24 PM
i am 'using' classes in my program and it has worked until recently.....

when i 'use' it in a unit it says there is a circular reference so it doesnt compile
when i remove all references to 'classes' it cant compile SDL for some reason
when I just put 'classes' in the main file it says 'cant find classes used by project1'
I downloaded the FPC source and pointed lazarus to the source folder successfully but still got the same error.

-edit NEVERMIND
i created a unit called 'types' which conflicts with a normal pascal unit

WILL
23-11-2010, 09:55 PM
Yeah, we all make little mistakes like that from time to time. :)

A good rule of thumb is to always avoid using [Object] Pascal language keyword names in and files, declarations or unit names unless absolutely necessary. However, if you find you must for clarity, be sure you don't use them exactly or only use them at the end of the name you are using.