I build a 64-bit dll in Clion. Tollchain Visual Studio
The project compiles successfully. For debugging I use Win64 host application compiled in Delphi. I added this application in the configuration editor and when I start debugging I get the message
'Project.exe' doesn't contain the architecture x86_64
Process finished with exit code 0
The application itself without a debugger (or from under the Visual Studio debugger) starts and loads my dll.
Additional info
I have compiled an empty Delphi project
program Project1;
{$APPTYPE CONSOLE}
begin
end.
When I run it from under the debugger as a host application, I get the same error.
When running an empty project built in Visual Studio as an host application
int main()
{
}
the debugger starts without errors
Platform: Win64
For comparison PE Headers Delphi and VC programs
Delphi
Visual Studio
question from:
https://stackoverflow.com/questions/65897450/debug-dll-and-doesnt-contain-the-architecture-x86-64 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…