Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29234 Discussions

Linking Error with GETCURDIR and GETFILENAME

fgmurphy
Beginner
569 Views
Hello, I have just begun migrating a series of legacy applications from CVF to Intel Visual Fortran 11.1 For the most part the migration has gone quite smoothly however several of the programs have linking errors of "error LNK2019: uresolved external symbol _GETFILENAME@24 referenced in function..."

Does anybody know which library I have to add for the intel compiler to find these?

Thanks!
0 Kudos
2 Replies
Steven_L_Intel1
Employee
569 Views
Neither of those are standard CVF or Win32 routine names. Perhaps they came from some other library you linked with?

A suggested first start - right click on the project, select Properties, Fortran, External Procedures. Change the procedure calling convention from CVF to Default (or "inherit from project defaults") Then rebuild. This might just change the name of the missing external.
0 Kudos
fgmurphy
Beginner
569 Views
Yup, that did it. Thanks !
0 Kudos
Reply