- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi,
I´m having a problem with linking a Fortran DLL created in VS 2010 V12.1 into a C++ code created with VS2008. The DLL does not seem to load. Is it not compatible when calling a DLL created with a newer version of Visual Studio?
I found the thread below that discuses the oposite problem. Is these problems related?
- Marcas:
- Intel® Fortran Compiler
Link copiado
3 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
What exactly goes wrong? Do you get an error message? There is nothing "incompatible" but you must satisfy the normal requirements of DLLs, such as having any dependent DLLs present and findable on the system.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
The DLL i´m making will go into a external program i do not control. But my partners on the C++ side say that the DLL only returns garbage, bad pointers etc and the DLL is actually not loaded only the library. The claim that this is on the VS side and i need to change version from 2010 to 2008. I can not really understand this. Does the VS version affect how the DLL is compiled? If so is it possible to change the platform in 2010 to 2008?
I hope you can understand my problem.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
What is affected by the VS version is which version of the MSVC DLL is linked in. If your DLL is being used on another system, that system must have the appropriate MSVC redistributables installed. However, if you know that your DLL will be not be called from Fortran, you can set the option Libraries > Use Runtime Library > Multithread (and not Multithread DLL). This will link in static libraries and remove dependencies on the MS DLLs.
I don't quite see how the DLL can both not load and return garbage, though.
I don't quite see how the DLL can both not load and return garbage, though.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora