Jump to content
OMRON Forums

alangreer

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by alangreer

  1. Apologies if this has already been asked but I could not find an answer.

     

    I need to compile C code on the power PMAC that makes use of the shared memory structures. I would be using various scripts and services on the power PMAC to automatically download code and compile it, and so I cannot use the Windows IDE.

     

    Whilst I can compile C code, and include RtGpShm.h without any problems the application fails to run with a segmentation fault. I am assuming I have not linked to the libraries I require, or I have not made the right calls in the first place.

     

    I imagine I could call something like

     

    volatile struct SHM *pshm;

    double pos = pshm->Motor[0].JogPos;

     

    So is there a basic guide I can follow to get a C program to compile on the Power PMAC that talks to the shared memory structures, and have I just messed up the code, should I set the LD_LIBRARY_PATH to point to libraries etc.

     

    Any help would be appreciated on this matter.

×
×
  • Create New...