<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Is there any benefit for a Delphi or Free Pascal/Lazarus programmer to build a C DLL in debug mode ?
<br>
<br>
Could it and would it somehow lead to better debugging ? <br>
If so how ? So far I don't notice any difference between debug or release build from within Delphi.
<br>
<br>
Maybe Release/Debug in this case/context only matters for those trying to debug the C DLL from inside Visual Studio ?!? Like attach to executable ? Or run with host application executable ? Such a feature... ?
<br>
<br>
Building Uber H3 Library can be done as follows: <br>
<br>
Step 1: Use CMakeGUI to make build folder <br>
Step 1.1: Select source folder, example: <br>
E:\SourceCode\H3V4\ <br>
<br>
Step 1.2: Select build folder, example: <br>
E:\SourceCode\H3V4-build\ <br>
<br>
Execute step 2 and step 3 in ms-dos command prompt from visual studio with special environment settings:
<br>
<br>
Step 2: Configure for DLL release: <br>
<br>
cd E:\SourceCode\H3V4\ <br>
cmake "..\h3V4-build" -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
<br>
<br>
Step 3.1: Build release DLL <br>
<br>
cd E:\SourceCode\H3V4-build\ <br>
cmake --build . --config Release <br>
<br>
or <br>
<br>
Step 3.2: Build debug DLL <br>
<br>
cd E:\SourceCode\H3V4-build\ <br>
cmake --build . --config Debug <br>
<br>
Bye, <br>
   Skybuck. <br>
</div>
</body>
</html>