Re: a problem porting an application from linux to windows, oh the agony -- please help?



Igor Kaplounenko wrote:
moi wrote:
Igor Kaplounenko wrote:



fem_meshmodule.o : warning LNK4217: locally defined symbol __iob
imported in function _f2py_rout_fem_mesh_p_calcline
fortranobject.o : warning LNK4049: locally defined symbol __iob imported


This would seem ominous if I actually knew what __iob is. I got the




__iob is probably an array of FILE structs built to simulate the Fortran I/O blocks.


hmm, but what would cause it to be imported once it's locally defined?


NB: your __iob seems to have a *double* underscore. Linker?

microsoft toolkit linker

No, I meant: possibly one of the steps could have prepended a second underscore somewhere in the process.


About the error-message: could it be that a local __iob has shadowed a public one ? Or another duplicate defined error, hidden by the "incremental linker" ? You could investigate by checking (all) the objects' symboltables ;-[

Just some thoughts,
AvK
.