<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 22, 2023 at 4:46 PM Brett Sterling <<a href="mailto:brett.sterling@odysseysr.com">brett.sterling@odysseysr.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3469803292219599600">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
My code calls the 'signal()' function. There are no errors during compile, but when it goes to the link stage, it gets an error:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
: in function `Encore::Framework::Component::Component(unsigned int, double)':
<div>Component.cpp:(.text+0x1338): undefined reference to `signal'</div></div></div></div></blockquote><div><br></div><div>Did you build with POSIX enabled? POSIX signals are part of the small amount of POSIX functionality that is covered by that switch. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3469803292219599600"><div dir="ltr"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
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</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<ol>
<li style="list-style-type:"a) ""><span>I'm not linking with the correct libraries OR</span></li><li style="list-style-type:"b) ""><span>I need to specify some sort of switch when building the RTEMS tools (in order to include the 'signal()' function in the libraries).</span></li></ol>
<div>I've searched 'the web' but haven't come up with anything that indicates where I'm going wrong.</div>
<div><span><br>
</span></div>
<div><span>Any pointers here would be appreciated :-)</span></div>
<div><span><br>
</span></div>
<div><span>Thanks!</span></div>
<div><span>Brett</span></div>
</div>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></div></blockquote></div></div>