Pelles C > Add-ins

SrcFileCC2 Add-In for v9, a second opinion

(1/1)

TimoVJL:
SrcFileCC2 Add-In for v9, a second opinion insert a button to toolbar for additional compilers, to make easy way to use another C compiler to show errors and warnings.

It use SrcFileCC2x64.ini file for options.

--- Code: ---[compiler0]
title=msvc
ccpath=cl.exe -c -wd4103 -wd4068 -Drestrict=__restrict
include=C:\code\WDDK710\include
path=C:\code\msvc2019\bin

[compiler1]
title=msvc x64
ccpath=cl.exe -c -wd4103 -wd4068 -Drestrict=__restrict
include=C:\code\WDDK710\include
path=C:\code\msvc2019\bin\x64

[options]
check_only=1

--- End code ---

for msvc 2019 using Pelles C 9 headers
--- Code: ---ccpath=cl.exe -c -wd4103 -wd4068 -Drestrict=__restrict -D__POCC__=900 -D__POCC_TARGET__=1 -D__WCHAR_TYPE__=short -D__SIZE_TYPE__=__int32 -D__midl

--- End code ---
or for x64
--- Code: ---ccpath=cl.exe -c -wd4103 -wd4068 -Drestrict=__restrict -D__POCC__=900 -D__POCC_TARGET__=3 -D__WCHAR_TYPE__=short -D__SIZE_TYPE__=__int64 -D__midl

--- End code ---

for clang
--- Code: ----D__POCC__=900 -D__POCC_TARGET__=1
--- End code ---
or for x64
--- Code: ----D__POCC__=900 -D__POCC_TARGET__=3
--- End code ---
but clang emits errors in winnt.h, so copy of modified headers are usable.

Navigation

[0] Message Index

Go to full version