<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hello all,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
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);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
: in function `Encore::Framework::Component::Component(unsigned int, double)':
<div class="ContentPasted0">Component.cpp:(.text+0x1338): undefined reference to `signal'</div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
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);" class="elementToProof">
<ol data-editing-info="{"orderedStyleType":6,"unorderedStyleType":1}" data-listchain="__List_Chain_86">
<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>
</body>
</html>