Sublime Forum

Install Sublimeclang on ST3 (windows)

#1

I’d like to record here

1.Download sublimeclang git to the packages folder of ST3

2.Download the SublimeClang-1.0.41.sublime-package https://github.com/downloads/quarnster/SublimeClang/
rename it to SublimeClang-1.0.41.zip, extract the libclang.dll and libcache.dll or x64 version for 64bit system.

3.Copy the dll files into “SublimeClang\internals”

4.Fix some issue according Sublime Clang ST3 Error https://forum.sublimetext.com/t/sublime-clang-st3-error/10712/1#p51191
just replaced the lines 161-2 in internals/common.py with this:

if project_path:
    project_path = project_path.replace("\\", "\\\\") # Path will be used within a regex, thus escape every backslash
    value = re.sub(r'\${project_path}', project_path, value)
  1. configure the sublimeclang settings for your project and go on hacking :astonished:
0 Likes

Sublime Text 3 SublimeClang cygwin mingw 64bit
#2

Step 4. has been commited to the SublimeClang master GitHub repo, so no need to separately fix that.

0 Likes

#3

Hi,

does the instruction apply for mac as well, please help for the mac version. i really like clang in sublime.

i did all that in the folders but still does not work.

and basically i did not get the following “configure the sublimeclang settings for your project”, what do i need to configure.

0 Likes

#4

The download link provided is incorrect

0 Likes