Print

Print


Mint seems to another derivative of Debian, so I expect this is the 
toolchain linking changes we see in Ubuntu becoming more widespread. In 
that case you need to define LDFLAGS to "-Wl,--no-as-needed", that will 
require a reconfigure (?) and clean of the tree.



On Tue, 25 Mar 2014, David Berry wrote:

> May be interesting to see if a simple standalone program can link
> successfully. Something like:
>
> % more emstest.c
>
> #include "ems.h"
> main(){
>   int status = 1;
>   emsRep( "", "Hello world", &status );
> }
>
> % gcc -o emstest emstest.c -I/star/include -L/star/lib `ems_link`
> % emstest
> !! Hello world
>
>
> David
>
> On 24 March 2014 22:14, Sherwood, Matt <[log in to unmask]> wrote:
>>> Ok, so it is there so why can't it find emsSetnc ? Is the symbol in that library?
>>>
>>> Run "nm ~/software/star/lib/libems.so" and make sure the emsSetnc symbol has a "T" against it.
>>
>> Yup:
>>
>>> nm ~/software/star/lib/libems.so | grep emsSetnc
>> 0000000000003010 T emsSetnc
>

-- 
Peter W. Draper, http://astro.dur.ac.uk/~pdraper