lvzixun / Clang-Complete

a auto complete plugin for sublimetext3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: error opening 'filename.d': Permission denied

Elojah opened this issue · comments

Hi,

Thanks for your plugin, it really contributes to make sublim a nice editor.

Everytime clang compile i got this error:
"error: error opening 'filename.d': Permission denied"

I use theses rules in my makefile:

CFLAGS = -MMD -Wall -Wextra -Werror -O3 -std=c++11

#Build rule
$(BIN_DIR)/$(TARGET) : $(OBJ)
    $(CC) $(CFLAGS) $^ -o $@ $(LIBS)

#Compilation rule
$(BUILD_DIR)/%.o: $(SRC_DIR)/%$(SRC_EXT)
    @mkdir -p $(dir $@)
    $(CC) $(CFLAGS) $(INC) -o $@ -c $<

-include $(DEP)

Even when i compile without -MMD, this error happens. It's not a serious problem but it's disturbing.

Thanks !

Ok, it's the option -MMD in Clang-complete compilation which can't work.