help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkoctfile does not pass -Xlinker to the compiler


From: Andres Cimmarusti
Subject: Re: mkoctfile does not pass -Xlinker to the compiler
Date: Thu, 18 Jul 2013 21:59:18 -0400

>> I debugged recently similar issues on the java package from octave-forge by
>> using the '-v' flag to mkoctfile. Look at the generated command sequence,
>> hack it as required, test it, and, once working, get in touch with the
>> maintainer.

> If you need to pass linker flags from mkoctfile, use -Wl,--flag1 -Wl,--flag2.

I see. After many trials and errors, I think I understand now. I don't
need Xlinker, as I can use -Wl to pass the necessary options to the
linker.

This seems to work:

mkoctfile --mex -lpython2.7 -ldl "-Wl,-export-dynamic" py.cpp

But then I get the same error when trying to call python within octave.
It's likely I need to edit some stuff in the C++ code (py.cpp) linking
to python to make this work with octave.

Thanks for your help. If I ever get it to work, I will post it

Andres


reply via email to

[Prev in Thread] Current Thread [Next in Thread]