1
votes

No method definition: semanticdb-add-reference, (nil (\"stdio.h\" include (:system-flag t) (unlink-copy-hook (semantic--tag-unlink-copy-secondary-overlays) link-hook (semantic--tag-link-secondary-overlays) secondary-overlays (# #) unlink-hook (semantic--tag-unlink-secondary-overlays) dependency-file \"d:/MinGW/include/stdio.h\") #))"

I use mingw in windows 7 system, c.c is the file name, and there are two sentence in init.el which are relevant to the problem:

(semantic-add-system-include "D:/MinGW/include" 'c-mode)
(setq semantic-c-dependency-system-include-path "D:/MinGW/include")

2
Please consider formatting your post to ease readability - n0p
sorry, but the first paragraph is the original error message. - kuangdash

2 Answers

1
votes

The include path you are setting should be a list, such as:

(setq semantic-c-dependency-system-include-path '("d:/MinGW/include"))

but you don't need that line if you are using semantic-add-system-include.

While I haven't tried it, you can probably skip doing either of the above by instead using semantic-gcc-setup and ask your minGW compiler. Just make sure a command "gcc" is on your exec-path when you start Emacs, and it will be automatically detected.

No one has reported this working or not working for MinGW, so if it works out, let us know.

0
votes

"M-x customize" then search "Global Semanticdb Minor Mode" then toggle on it