- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am learning how to build Dynamic-Link librariesby usingintel Fortran Compiler 11.0.061. The help file under that topic says: " To debug a DLL, you must use a main program that calls the library routines." I added a main program file ina DLL project and started debugging. However it gave the following error message:" Visual Studio cannot debug because a debug target has not been specified." How to solve this problem?
Thanks!
I am learning how to build Dynamic-Link librariesby usingintel Fortran Compiler 11.0.061. The help file under that topic says: " To debug a DLL, you must use a main program that calls the library routines." I added a main program file ina DLL project and started debugging. However it gave the following error message:" Visual Studio cannot debug because a debug target has not been specified." How to solve this problem?
Thanks!
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remove the main program file. Right click on your DLL project and select Properties > Debugging. In the Command field, enter the path to the executable that loads your DLL. Set a breakpoint in your DLL routine and then start debugging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Remove the main program file. Right click on your DLL project and select Properties > Debugging. In the Command field, enter the path to the executable that loads your DLL. Set a breakpoint in your DLL routine and then start debugging.
Thanks for the reply. I tried to build executable that loads the DLL. The help file says:" when you build the executable that imports the procedures or data defined in the DLL, you must link using the import library". How to create this "import library"?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The import library is created automatically when you build the DLL, as long as you have exported one or more symbols (using a DLLEXPORT attribute). This will be a .LIB file created by the DLL build. If you make the DLL project a dependent of the EXE project (assumes both are in the same solution - right click on the EXE project, select Project Dependencies, and check the box for the DLL project), then the import library will be linked in automatically. Otherwise you can add the .LIB to your EXE project as if it were a source file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
The import library is created automatically when you build the DLL, as long as you have exported one or more symbols (using a DLLEXPORT attribute). This will be a .LIB file created by the DLL build. If you make the DLL project a dependent of the EXE project (assumes both are in the same solution - right click on the EXE project, select Project Dependencies, and check the box for the DLL project), then the import library will be linked in automatically. Otherwise you can add the .LIB to your EXE project as if it were a source file.
It works. Thanks!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page