Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2022-08

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

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Skybuck Flying

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.

Reply by email

Luca Olivetti
to Skybuck Flying

El 29/8/22 a les 9:50, Skybuck Flying via fpc-pascal ha escrit:

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

yes, because I found out that you can debug it right inside lazarus, almost like pascal code.

Bye

Luca

Reply by email