Shop OBEX P1 Docs P2 Docs Learn Events
problems access propeller gcc libraries — Parallax Forums

problems access propeller gcc libraries

zorasterzoraster Posts: 10
edited 2013-05-07 13:20 in Propeller 1
I've just started using the simpleIDE+propellergcc and it went well for a day or two but now I can't get the compiler to find the utility libraries. This is the error I get: Decision Chain.c:3:25: fatal error: simpletools.h: No such file or directory. I tried clicking on the button to add libraries but that didn't work and I also checked the paths to the libraries and that seems to be correct. What am I missing?

Comments

  • jazzedjazzed Posts: 11,803
    edited 2013-04-18 08:07
    Hi there. You've happened upon a new feature that has not been released yet. The problem you see should be fixed in the latest package. Send me a private message and I can help you get it working.
  • IamretiredIamretired Posts: 56
    edited 2013-05-05 20:48
    I have the same problem: Decision Chain.c:3:25: fatal error: simpletools.h: No such file or directory.
    Can you sprinkle some fairy dust to fix my problem as well?for me also.
    Johnmb
  • RaymanRayman Posts: 14,665
    edited 2013-05-06 06:19
    There was a presentation at the Propeller Conference that discussed the new "simpletools.h"

    Looks like the plan is to use that instead of "propeller.h" to add support for various things such as .wav file playing and so forth.

    I think I might have gone another way and instead made things like "PropBOE.h", etc., to make it even simpler for people with a certain board.
    But, this way might be better for general use.

    I suppose I see a value for Parallax to make this as easy as possible for people and this type of thing seems pretty good.
  • David BetzDavid Betz Posts: 14,516
    edited 2013-05-06 06:31
    Rayman wrote: »
    There was a presentation at the Propeller Conference that discussed the new "simpletools.h"

    Looks like the plan is to use that instead of "propeller.h" to add support for various things such as .wav file playing and so forth.

    I think I might have gone another way and instead made things like "PropBOE.h", etc., to make it even simpler for people with a certain board.
    But, this way might be better for general use.

    I suppose I see a value for Parallax to make this as easy as possible for people and this type of thing seems pretty good.
    I don't think simpletools.h will replace propeller.h. It is a new header file that goes with Andy's education libraries. The propeller.h header file will continue to be included in the PropGCC releases.
  • Ken GraceyKen Gracey Posts: 7,392
    edited 2013-05-06 06:41
    Rayman wrote: »
    I think I might have gone another way and instead made things like "PropBOE.h", etc., to make it even simpler for people with a certain board.
    But, this way might be better for general use.

    I suppose I see a value for Parallax to make this as easy as possible for people and this type of thing seems pretty good.

    The primary customer of the Learn C program (links to be posted today) is Education. This customer will mostly use the Propeller Activity Board, or maybe the PropBOE. The two boards are the same, so we opted not to identify specific boards through the .h files. Also, this could've added some additional confusion between the various memory model variants. We want to keep it as simple as possible for the target customer.
  • jazzedjazzed Posts: 11,803
    edited 2013-05-06 08:14
    Common guys, propeller.h is used by simpletools; propeller.h is indispensable.
    Iamretired wrote: »
    I have the same problem: Decision Chain.c:3:25: fatal error: simpletools.h: No such file or directory.
    Can you sprinkle some fairy dust to fix my problem as well?for me also.
    Johnmb

    If you have version 0-9-xx, use the Add Library button. Older 0-8-5 versions use the project manager to add relevant items.

    One of the enhancements we are looking at going forward is Auto-Lib. Version 0-9-27 has an "Auto Include Library" checkbox in properties that is disabled by default. If you enable that, you don't need to use Add Library unless you want to Save Project As or Zip the project.

    The latest version 0-9-27 which is not "publicly posted" is the latest but has a documentation bug. I'll be uploading a 0-9-28 windows version this morning for general use. Mac version doesn't seem to have the documentation bug.


    Ken, thanks for your explanation.
  • RaymanRayman Posts: 14,665
    edited 2013-05-07 04:42
    Ken, maybe you considered this already, but I might have gone with a "Learn C/C++" program.
    GCC has a strong advantage, in my opinion, of being able to compile C++ code that is nearly the same size as C code
    (when the library is left off). This gives you the opportunity to teach C++ object oriented concepts as well as the
    traditional C approach to microcontrollers...
  • Heater.Heater. Posts: 21,230
    edited 2013-05-07 06:50
    Rayman,

    Yes, and that is exactly what the Arduino is all about. There has been discussion of implementing Arduino libraries (classes) for the propeller.

    I discovered a long time ago that if you use C++ in a simple way (rather like object programming in Spin) it can compile to the same size as doing the same thing in C.

    In fact in my experiments with this it produced byte for byte the same code as the C version. For example:

    Using a C++ method like so;
    someObject.someMethod (param1, param2);
    

    Will generate exactly the same code as the object oriented C approach:
    someMethod (&someObject, param1, param2);
    

    Not only that the code in the objects methods is exactly the same in both languages.
  • SRLMSRLM Posts: 5,045
    edited 2013-05-07 10:28
    Rayman wrote: »
    Ken, maybe you considered this already, but I might have gone with a "Learn C/C++" program.
    GCC has a strong advantage, in my opinion, of being able to compile C++ code that is nearly the same size as C code
    (when the library is left off). This gives you the opportunity to teach C++ object oriented concepts as well as the
    traditional C approach to microcontrollers...

    I talked to Andy about this at the OPC, and Parallax decided to teach C instead of C++ for a number of reasons:
    1. Target audience is bigger for C
    2. Hopefully the community will make a C++ version of simpletools library.
  • RaymanRayman Posts: 14,665
    edited 2013-05-07 13:10
    I definitely think they should focus on C. But, why not add in a little C++?
    To me, it seems like for just a little effort, they could tap into a wider audience and gain more interest...
  • jazzedjazzed Posts: 11,803
    edited 2013-05-07 13:20
    Maybe a few of the examples should be ported?

    It would be interesting to see the resulting size and ease of use differences given some reasonable coding methodologies.
Sign In or Register to comment.