"signal()" in RTEMS unresolved

Brett Sterling brett.sterling at odysseysr.com
Tue Aug 22 21:46:02 UTC 2023


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'

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20230822/29f92bc3/attachment.htm>


More information about the users mailing list