On Tue, Aug 22, 2023 at 4:46 PM Brett Sterling <brett.sterl...@odysseysr.com> wrote:
> Hello all, > > My code calls the 'signal()' function. There are no errors during > compile, but when it goes to the link stage, it gets an error: > > : in function `Encore::Framework::Component::Component(unsigned int, > double)': > Component.cpp:(.text+0x1338): undefined reference to `signal' > Did you build with POSIX enabled? POSIX signals are part of the small amount of POSIX functionality that is covered by that switch. > > I've seen the documentation that indicates the Posix method is to use > 'sigaction()', but we're looking to use the standard C/C++ library > functionality. Based on the error, I'm guessing that either > > 1. I'm not linking with the correct libraries OR > 2. I need to specify some sort of switch when building the RTEMS tools > (in order to include the 'signal()' function in the libraries). > > I've searched 'the web' but haven't come up with anything that indicates > where I'm going wrong. > > Any pointers here would be appreciated :-) > > Thanks! > Brett > _______________________________________________ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users >
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users