- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I have a problem with a Fortran DLL that is pulling unwanted DLL dependencies from other sections of the code. That is, the same set of objects (100+) is used to build an executable with a full set of features and a DLL that exposes a few select functions for a separate viewer program. The functions from the external DLL are not called on any part of the code path that I want to export in my own DLL but there is almost certainly some contamination from objects that contain both code my DLL needs and code that is only used in the executable.
I am fairly convinced that this is a linking issue and that I need to use function-level linking (instead of object-level) to resolve this. This is well-documented as /Gy and /OPT:REF in Windows; the Intel C/C++ Compiler supports this:
https://learn.microsoft.com/en-us/cpp/build/reference/opt-optimizations?view=msvc-170
But my code is in Fortran and I could not find the equivalent ifort flag for /Gy; without it, /OPT:REF has nothing to work with.
Is this supported ? Because untangling the original objects would be a massive undertaking....
Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Sorry. Neither ifort nor ifx support /Gy.
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla