Results 1 to 2 of 2

Thread: cant find unit classes used by project1

  1. #1

    cant find unit classes used by project1

    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
    Last edited by slenkar; 23-11-2010 at 03:47 PM.

  2. #2
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    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.
    Jason McMillen
    Pascal Game Development
    Co-Founder





Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •