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

How to build separated DLLs which interact with each other

olmak
Beginner
415 Views
Hi, I have to build two separated DLLs in Visual Fortran which import functions from each other. Thus, building the first DLL requires the .lib file of the second DLL and building the second DLL requires the .lib information of the exported functions of the first DLL. But since I have no .lib file at the beginning I am not able to build any of these DLLs because I get an unresolved symbol error message for the functions which are located in the other DLL. How do I solve this problem?
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
415 Views
Best, redefine it :smileyhappy:. If you can manage to pass one procedure to another dll as an argument, that will probably be the best. Or you can use LoadLibrary->GetProcAddress to load the other dll at run-time (search the Forum or see LOADEXP sample).
If neither is applicable, you can resolve the vicious circle by using a manual build. DLLEXP1 sample demonstrates that -- see this thread(but I'm not familiar with details).
Jugoslav
0 Kudos
olmak
Beginner
415 Views
Thank you very much for your help!
0 Kudos
Reply