NO

Author Topic: SrcFileCC2 Add-In for v9, a second opinion  (Read 5606 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2116
SrcFileCC2 Add-In for v9, a second opinion
« on: July 29, 2019, 05:25:37 PM »
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: [Select]
[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

for msvc 2019 using Pelles C 9 headers
Code: [Select]
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
or for x64
Code: [Select]
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

for clang
Code: [Select]
-D__POCC__=900 -D__POCC_TARGET__=1or for x64
Code: [Select]
-D__POCC__=900 -D__POCC_TARGET__=3but clang emits errors in winnt.h, so copy of modified headers are usable.
« Last Edit: August 04, 2019, 01:24:35 PM by TimoVJL »
May the source be with you