PDA

View Full Version : second! the 64.exe logic



DaveR
27-Jul-2021, 08:55 AM
What determines if program64.exe gets generated as against program.exe?

I thought I understood the pattern but I've a couple of sources that don't seem to follow my expectation. I might have to change my batch compile scripts to accomodate this.

Focus
27-Jul-2021, 08:57 AM
Project properties > Compiler tab

Stephen W. Meeley
27-Jul-2021, 09:36 AM
Dave,

The compiler you use (32 or 64 bit) determines which version is compiled. The project properties settings determine if suffixes are used for either or both. So you batch file will reference either (or both) of the dfcomp compiler or the dfcompconsole compiler using their command-line interfaces.

DaveR
27-Jul-2021, 11:35 AM
Dave,

The compiler you use (32 or 64 bit) determines which version is compiled. The project properties settings determine if suffixes are used for either or both. So you batch file will reference either (or both) of the dfcomp compiler or the dfcompconsole compiler using their command-line interfaces.


IIRC that contradicts something I was told in the betas and have adopted since.
My 32bit batch script uses the following:


for %%r in (*.src) do "C:\Program Files\Dataflex 20.0\Bin\DFCOMP" %%r -x"C:\\DEVKFP\Kirknet\configPSQL20.0.32.sws" -wi0

My 64bit uses the dfcomp from bin64:


for %%r in (*.src) do "C:\Program Files\Dataflex 20.0\Bin64\DFCOMP" %%r -x"C:\\DEVKFP\Kirknet\configPSQL20.0.sws" -wi0


Am I wrong now?

they have different .sws and programs folders so overwriting isn't an issue

DaveR
27-Jul-2021, 11:37 AM
Project properties > Compiler tab
SDI, 400 of them...

Edit: but you might have answered my question as the suffix 64 is present on at least one of the sources I'm referring to, thanks.

edit2: Yes, that was it. thanks again.

DaveR
27-Jul-2021, 12:02 PM
Dave,

The compiler you use (32 or 64 bit) determines which version is compiled. The project properties settings determine if suffixes are used for either or both. So you batch file will reference either (or both) of the dfcomp compiler or the dfcompconsole compiler using their command-line interfaces.

apologies, I read "of the dfcomp compiler or the dfcompconsole compiler" to relate respectively to ' (32 or 64 bit) ' ...

Incidentally your adding DFCompConsole to the help didn't add much in the way of er, help. :rolleyes: I was hoping for an example of why it should be used.

Stephen W. Meeley
27-Jul-2021, 12:22 PM
Dave,

Haven't finished yet. But alls ya gots ta do to see the command line interface is dfcompconsole /? - there is nothing more to it that than.

Harm Wibier
28-Jul-2021, 02:18 AM
:rolleyes: I was hoping for an example of why it should be used.
We created DfCompConsole.exe because we needed it to build DataFlex sources on a build server. The build server should be able to capture the output (which with dfcomp.exe is difficult) and needs an error level on exit to detect errors.

DaveR
28-Jul-2021, 08:53 AM
Dave,

Haven't finished yet. But alls ya gots ta do to see the command line interface is dfcompconsole /? - there is nothing more to it that than.

thanks

DaveR
28-Jul-2021, 08:53 AM
We created DfCompConsole.exe because we needed it to build DataFlex sources on a build server. The build server should be able to capture the output (which with dfcomp.exe is difficult) and needs an error level on exit to detect errors.

thanks