- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have created a single solution with 2 projects in Visual Studio 2015 (Community)
- The first project is a fortran exe (project name is Call_dll_test). This is the startup project as well.
- The second project is a fortran dll (project name is MicroDLL)
- For the exe project dependency I have linked the dll project
- For the dll project command, I have included the path of the exe file
I am able to build the solution successfully without any errors. However, when I start debugging I get the error that - VS cannot debug because a debug target has not been specified.
I am including some screen-shots for your reference.
I would appreciate your help
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The screenshot doesn't contain the debugging settings of the startup project "Call_dll_test". When you start the Visual Studio debugger it will run the startup project.
Thanks,
Xiaoping Duan
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Should I change my startup project to the dll? Even when I change the start-up project to the dll, I get the same error message.
In the debug mode, I want to step through the exe code and then eventually step into the dll code as well. How do I achieve that?
Attached are the screen shots of the debug setting of the call_dll_test exe project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You want the EXE to be the startup project here.
I'll also mention for those who may come here later, the situation where you have only a DLL project and your DLL is called by some EXE not developed by you (Excel, etc.) Here, you set the Debugging > Command project property to be the path to the EXE that will call your DLL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve:
My start-up project is the EXE project. If you look at the original post of my problem, I seem to have followed all the recommended settings (I am repeating them in this message for ready reference). yet I keep getting the error message.
- The first project is a fortran exe (project name is Call_dll_test). This is the startup project as well.
- The second project is a fortran dll (project name is MicroDLL)
- For the exe project dependency I have linked the dll project
- For the dll project command, I have included the path of the exe file
I really would appreciate help in resolving the situation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How about a screenshot of Visual Studio with the error message displayed? I want to see the whole VS window. How are you starting debugging?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve:
attached is screen shot of what the error message I am getting. I am also including additional project property screenshots for reference. Hopefully this is helpful. I start the debugging by clicking the green triangular start button in the top menu bar.
Look forward to your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the latest PDF, the Debugging > Command property for the CallDLLTest project is blank. You need to fix that. Typically it is set to $(TargetPath)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many Thanks Steve. that was it. once I made the change you recommended, I can start the debugging process
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page