[fpc-pascal] Is there any benefit for a Delphi/Free Pascal/Lazarus programmer to build a C DLL in debug mode ?

Skybuck Flying skybuck2000 at hotmail.com
Mon Aug 29 09:50:52 CEST 2022


Is there any benefit for a Delphi or Free Pascal/Lazarus programmer to build a C DLL in debug mode ?

Could it and would it somehow lead to better debugging ?
If so how ? So far I don't notice any difference between debug or release build from within Delphi.

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... ?

Building Uber H3 Library can be done as follows:

Step 1: Use CMakeGUI to make build folder
Step 1.1: Select source folder, example:
E:\SourceCode\H3V4\

Step 1.2: Select build folder, example:
E:\SourceCode\H3V4-build\

Execute step 2 and step 3 in ms-dos command prompt from visual studio with special environment settings:

Step 2: Configure for DLL release:

cd E:\SourceCode\H3V4\
cmake "..\h3V4-build" -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON

Step 3.1: Build release DLL

cd E:\SourceCode\H3V4-build\
cmake --build . --config Release

or

Step 3.2: Build debug DLL

cd E:\SourceCode\H3V4-build\
cmake --build . --config Debug

Bye,
   Skybuck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220829/7dc7efc7/attachment.htm>


More information about the fpc-pascal mailing list