Pelles C forum

Pelles C => Add-ins => Topic started by: TimoVJL on March 28, 2019, 02:05:21 pm

Title: SrcFileCC Add-In
Post by: TimoVJL on March 28, 2019, 02:05:21 pm
SrcFileCC Add-In is for running another C compiler using current source file, as second opinion, errors and warnings.
Sample SrcFileCC.ini or SrcFileCC64.ini
Code: [Select]
[path]
ccpath=clang-cl.exe -W2 -Zl -GS- -Ox
include=C:\code\XXXX\include -Iinclude
path=C:\code\clang8\bin

[path64]
ccpath=clang-cl.exe -W2 -Zl -GS- -Os
ccpath1=cl.exe
include=C:\code\XXXX\include -Iinclude
path=C:\code\clang8\bin\x64

[options]
check_only=1

EDIT: for clang and Pelles C 9 headers, add -D__POCC__=900 -Wno-pragma-pack and make a modified copy of headers to new different folder.
Title: Re: SrcFileCC Add-In
Post by: bitcoin on March 28, 2019, 08:23:50 pm
Sorry for the stupid question, but where is this needed?
Title: Re: SrcFileCC Add-In
Post by: TimoVJL on March 29, 2019, 08:51:21 am
At least i sometimes want to check if code is compatible for another C compiler or to see different error message.