- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
We have a subroutine whichhas a MBCS character string,and usesi = MBLen_Trim(string)
As perthe documentation we added a USE IFNLS at the topof the subroutine, and under Project properties-> Fortran-> Libraries ticked the box "Use portlib library" (command line option /4Yportlib.)
When linking we get the unresolved MBLen_Trim message
I have checked that the paths to the compiler bin, lib, and include directories are correct
What do I need to do to resolve the link?
Thanks
Les
Ссылка скопирована
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
This is a bug in the IFNLS module where it names MBLEN instead of MBLEN_TRIM in the !DEC$ ATTRIBUTES DEFAULT directive. I'll report it.
Do you have CVF compatibility enabled? Sounds as if you do. If you don't need it, go to Properties..Fortran..External Procedures. Set Calling Convention to "Default" and string length argument passing to "after all args" or "inherit". Then rebuild.
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Thanks Steve,
We simply added a (modified) interface block for MBLen_Trim to our subroutine and it linked ok
Les

- Подписка на RSS-канал
- Отметить тему как новую
- Отметить тему как прочитанную
- Выполнить отслеживание данной Тема для текущего пользователя
- Закладка
- Подписаться
- Страница в формате печати