Shop OBEX P1 Docs P2 Docs Learn Events
Folders — Parallax Forums

Folders

mhm21mhm21 Posts: 14
edited 2014-02-01 21:41 in Propeller 1
I apologize as I am sure this question has been asked 1e6 times. Are there any complilers/IDEs that support accessing objects in a folder outside of where the main code resides? Something akin to a #includes sort of thing is what I am after. I was tidying up some old code and realized I have ~10 different versions of basic_i2c and servo32v 1-9. It would be nice to link to a standard set of objects regardless of what directory I am working out of.

Comments

  • JonnyMacJonnyMac Posts: 9,107
    edited 2014-02-01 13:44
    Move common objects to the Propeller Tool Library folder -- on my system the path is:

    C:\Program Files\Parallax Inc\Propeller Tool v1.3.2\Library

    You don't have to do it manually; use File\Save To...\Propeller Library

    Be sure to remove redundant copies of your common objects; I believe the Propeller Tool looks in the local folder first.
  • mhm21mhm21 Posts: 14
    edited 2014-02-01 14:04
    Thanks! Quick and easy solution.
  • mhm21mhm21 Posts: 14
    edited 2014-02-01 20:11
    Are there any other options for using remote repos instead of the default libraries directory?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2014-02-01 20:19
    mhm21 wrote:
    Are there any other options for using remote repos instead of the default libraries directory?
    Sadly, no -- at least not with the Propeller Tool.

    -Phil
  • jazzedjazzed Posts: 11,803
    edited 2014-02-01 21:12
    Funny how Propeller-Tool gets "sadly" and SimpleIDE gets thrown under the bus.

    SimpleIDE allows setting a library path.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2014-02-01 21:41
    jazzed wrote:
    Funny how Propeller-Tool gets "sadly" and SimpleIDE gets thrown under the bus.
    'Not sure what that has to do with this particular inquiry, but whatever...

    In any event, I'm glad to see at least one Spin-supporting IDE with some flexibility in this regard. My preference would still be to see subdirectory references allowed in the OBJ section, as well, but that's a compiler issue, not an IDE issue.

    -Phil
Sign In or Register to comment.