Building CLING dll from source code

Hi Team,
I am new to the CLING interpreter. Currently, we are using CINT interpreter in our project for writing C++ scripts and we are using VS2012.
Since CINT is not supprorted on VS2019, we are looking at using CINT alternative CLING interpreter and migrate our project to VS2019.
The way CINT is used in our project is as below:

  1. Generate a .cxx file which contains all the declarations of functions used in my project(MSVP) using the below command
    .\cint.exe -w0 -nG__cpp_SVP.cxx -D__MAKECINT__ -DG__MAKECINT -c-1 -A -I…\Jessica\Comm\ -I…\Jessica\Sas\ -I…..\Common_Lib\ParameterHandler\Inc -I…..\Base_Lib\msvp_com -I…..\Common_Lib\MSVP_Namespace -I…..\SAS_Lib\mstk_com -I…\LibCint\cint\lib -I…\CommonAPI -I…\LibCint -I…..\Infusion_LIB -I…..\SAS_Lib\scwl -I…..\SAS_Lib\scwl\Buffer -I…..\SAS_Lib\Inc -I…..\SAS_Lib\sdil -I…..\Base_Lib\CoreLogger -I…\SED_Lib\SED_CINT\ -I…\SED_Lib\SED_LIB\ -I…\SED_Lib\SED_API\ -I…..\MSTK_LIB\Framework\Inc -I…\Jessica_MSTK\Comm -I…..\SSuite_Lib\SSuite -I…..\SSUITE_Lib\Stor_CLI -I…/…/Base_Lib/MSVPConfiguration -I…/…/Base_Lib/DrvOOB -I…/…/Base_Lib/CommonAPI -I…/…/Base_Lib/Inc -DG__REDIRECTIO -DG__SHAREDLIB -D_SAS -DG__WIN32 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER -D_CRT_SECURE_NO_DEPRECATE=1 -DG__HAVE_CONFIG -DG__NOMAKEINFO MSTK_SCSI_Cmd.h MSTK_SCSI_Helper.h TOOB.h CommonAPI.h ParameterDictionary.h SED.h Sas_Namespace.h PMU_Namespace.h SasCommApi.h Jessica.h IoStress.h JessicaType.h CintUtility.h BufferPattern_MSTK.h DeviceCtx_MSTK.h IoStress_MSTK.h IoStressType_MSTK.h LBAList_MSTK.h StressOperation_MSTK.h MSTK_SCSI_Cmd_RFX.h ResultUpdator.h

  2. Then , we build a CINT.dll using the above generated .cxx file and all the other source files of CINT

So, how should I proceed here if I want to use CLING in place of CINT in my project??

Any help/inputs would be greatly appreciated!
Thanks,
Prabhuraj

Welcome to the ROOT Forum!
I’m not sure if the syntax of the cling.exe arguments match the ones from cint.exe. Maybe @vvassilev or @Axel know

Thank you @bellenot for the response. I am looking forward for ROOT forum support on this !

Hi @vvassilev / @bellenot ,

Any updates for my query posted above?

I have even dropped a mail in detail to “axel@cern.ch” yesterday.
Looking for some details/inputs

Apologies for the late response.

With cling you don’t need to do this anymore. You can simply #include your headers into cling and that’s it.

What’s your workflow, would this work for you?