- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Hello,
we have the following problem:
A program that is written mainly in Fortran has a C++ main program to take care some
start-up tasks. Because of thisthe linker does not automatically include the Fortran
runtime libraries and we need to specify the directory where these are located explicitly.
However that is dependent on the particular installation and the particular version.
Is there a macro we can use (like $(ConfigurationName)or something else to make
the project file that describes the program and the associated build process in a way
that does not depend on the exact directory where the libraries are stored?
(I thought IFIDEInstallDir might do the trick, but Visual Studio does not know
about it. We are using Intel Fortran 11.x)
Regards,
Arjen
we have the following problem:
A program that is written mainly in Fortran has a C++ main program to take care some
start-up tasks. Because of thisthe linker does not automatically include the Fortran
runtime libraries and we need to specify the directory where these are located explicitly.
However that is dependent on the particular installation and the particular version.
Is there a macro we can use (like $(ConfigurationName)or something else to make
the project file that describes the program and the associated build process in a way
that does not depend on the exact directory where the libraries are stored?
(I thought IFIDEInstallDir might do the trick, but Visual Studio does not know
about it. We are using Intel Fortran 11.x)
Regards,
Arjen
Ссылка скопирована
4 Ответы
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
$(IFORT_COMPILER11) is what you want. This will get you to the 11.1\nnn folder.
Edited to correct name.
Edited to correct name.
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
I'm sure Steve meant to enter $(IFORT_COMPILER11). And if you're using ifort 12.n, it'll be $(IFORT_COMPILER12).
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Indeed it is - thanks, Jeff. I'll also note that the subfolder structure changed in version 12, so you can't just switch the environment variable names.
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Thanks for this information - it does indeed compile and link properly.
Regards,
Arjen
Regards,
Arjen

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