"signal()" in RTEMS unresolved
Joel Sherrill
joel at rtems.org
Tue Aug 22 22:14:21 UTC 2023
On Tue, Aug 22, 2023 at 4:46 PM Brett Sterling <brett.sterling at 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 at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20230822/6d233555/attachment.htm>
More information about the users
mailing list