Re: Semantic/wxWidgets problem

Eric Ludlam <[email protected]> Tue, 23 Dec 2014 11:28:03 -0500
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
On 12/07/2014 04:50 PM, Jacek Głowacz MERITUM wrote:
> Hi All
> I'm trying to use Semantic with wxWidgets 2.8, with no luck... I have
> latest bzr checkout of CEDET, and my Emacs is 24.3.1. Here is my
> .emacs content:
>

[...]

>
> ;; preprocessor macro
> (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLEXPORT" . ""))
> (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_CORE" . ""))
> (add-to-list 'semantic-lex-c-preprocessor-symbol-map
> '("WXDLLIMPEXP_FWD_CORE" . ""))
> (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_BASE" . ""))
> (add-to-list 'semantic-lex-c-preprocessor-symbol-map
> '("WXDLLIMPEXP_FWD_BASE" . ""))
> (add-to-list 'semantic-lex-c-preprocessor-symbol-map
> '("WXDLLIMPEXP_FWD_XML" . ""))
> (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_ADV" . ""))


[...]

> W/o add-to-list 'semantic-lex-c-preprocessor-symbol-map directives,
> everything is working OK... Any ideas?

Hi Piotr,

Sorry for the delay in writing back.  It has been a busy month.

You just need to require the support for C code first:

(require 'semantic/bovine/c)

I suppose you could also call a function to do it for you, such as:

(semantic-c-add-preprocessor-symbol "WXDLLEXPORT" "")

which is autoloaded, and handles that for you.

Good Luck
Eric

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
cedet-semantic mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-semantic