On 2008-08-31 10:25+0200 Werner Smekal wrote:

> Hi,
>
>> I suspect the leading underscore on all the names is the issue.  Do you 
>> have
>> a Fortran compiler option you can use to get rid of the leading 
>> underscores?
>
> Don't know, but will have a look.
>> 
>> Also for the next iteration can you please use "make VERBOSE=1" to get the
>> full build commands being used?
>
> Sorry:
>
> Linking Fortran shared library ..\..\dll\libplplotf77d.dll
> cd Z:\DevZone\PLdev\build\test\bindings\f77 && 
> C:\DevZone\cmake-2.6.0-win32-x86\bin\cmake.exe -E cmake_link_script 
> CMakeFiles\plplotf77d.dir\link.txt --verbose=1
> C:\DevZone\MinGW-4.3.1\bin\gfortran.exe     -shared  -o 
> ..\..\dll\libplplotf77d.dll CMakeFiles\plplotf77d.dir\strutil.obj 
> CMakeFiles\plplotf77d.dir\sfstubs.obj 
> CMakeFiles\plplotf77d.dir\configurable.obj ..\..\dll\libplplotf77cd.dll.a 
> ..\..\dll\libplplotd.dll.a ..\..\dll\libcsirocsa.dll.a
> CMakeFiles\plplotf77d.dir\sfstubs.obj:sfstubs.f:(.text+0x54): undefined 
> reference to `_plsetopt7_'
> CMakeFiles\plplotf77d.dir\sfstubs.obj:sfstubs.f:(.text+0x8c): undefined 
> reference to `_plabort7_'
> CMakeFiles\plplotf77d.dir\sfstubs.obj:sfstubs.f:(.text+0xc4): undefined 
> reference to `_plsdev7_'
> CMakeFiles\plplotf77d.dir\sfstubs.obj:sfstubs.f:(.text+0xe1): undefined 
> reference to `_plgdev7_'
> CMakeFiles\plplotf77d.dir\sfstubs.obj:sfstubs.f:(.text+0x131): undefined 
> reference to `_plsfnam7_'
> CMakeFiles\plplotf77d.dir\sfstubs.obj:sfstubs.f:(.text+0x14e): undefined 
> reference to `_plgfnam7_'
>
>
>> 
>> For deeper analysis of the problem (as opposed to my guess above) do you
>> have a tool that is equivalent of the Linux "nm" application to figure out
>> symbols that are defined in libraries?  If so, I suggest you look at the
>> symbols in the C library being linked to by libplplotf77d.dll to see what
>> form of plsetopt7 is defined.  I suspect you will find plsetopt7_ is 
>> defined
>> rather than _plsetopt7_ .
>
> I did that and attached it to the reply to Arjen.

Could you send the nm output for libplplotf77cd as well?  That library
defines plsetopt7, but it may have the wrong underscoring convention or
there may be some import/export of symbols problem.  That library is
mentioned in your detailed linking command above.  Is the choice of library
name and syntax of the command correct?

Once you send us the nm results for libplplotf77cd we can compare how
plsetopt7 is treated (which gave an error above) compared to plcol0 (which
did not give a linking error).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to