The IDE automatically selects the correct linker instructions for loading the proper run-time library routines (located in a DLL themselves). If you need to specify linker options, use the Linker category of the Project Property Pages dialog box. In the Common Element Alignment box, select 4 Bytes. Open the appropriate solution and select the project in the Solution View.įrom the Project>Properties, select the Fortran category. This sets the /align option, which specifies whether padding is needed to ensure that exported data items are naturally aligned.įor example, in the case of a common block containing four-byte variables, you might: In the Fortran Data compiler option category, specify the appropriate values for Common Element Alignment (common block data) and Structure Member Alignment (structures in a module). If your DLL exports data, consistently specify the project settings options in the Fortran Data compiler option category for both the DLL and any image that references the DLL's exported data. Include the DLL Fortran source that exports procedures or data as a file in your project. To build the DLL from the Microsoft integrated development environment (IDE):Ī Fortran DLL project is created like any other project, but you must specify Dynamic-Link Library as the project type.Īdd files to your Fortran DLL project. A dialog box is available for you to specify the executable for a debug session. From the Project Property Pages dialog box, choose the Debugging category. To debug a DLL, you must use a main program that calls the library routines (or references the data). When you first create a DLL, create a new project, and select Fortran Dynamic-Link Library as the project type.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |