title: Cedet - Wrong type argument , stringp, 1
body: <p>I am using the latest cedet version from bzr.   My cedet configuration is given below ( Taken from Alex Ott's file ).</p>
  
  <pre><code>(setq cedet-root-path (file-name-as-directory "~/cedet"))  
  (load-file (concat cedet-root-path "cedet-devel-load.el"))  
  (add-to-list 'load-path (concat cedet-root-path "contrib"))  
  
  ;; select which submodes we want to activate
  
  (add-to-list 'semantic-default-submodes 'global-semantic-mru-bookmark-mode)  
  (add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode)  
  (add-to-list 'semantic-default-submodes 'global-semantic-idle-scheduler-mode)  
  (add-to-list 'semantic-default-submodes 'global-semantic-stickyfunc-mode)  
  (add-to-list 'semantic-default-submodes 'global-cedet-m3-minor-mode)  
  (add-to-list 'semantic-default-submodes 'global-semantic-highlight-func-mode)  
  (add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode)  
  
  ;; Activate semantic
  
  (semantic-mode 1)  
  </code></pre>
  
  <p>I always get error "Wrong type argument , stringp 1"  whenever I open a C source code.<br>
   Looks like (semantic-mode 1)<br>
   is causing the issue.  Any help is appreciated.</p>
  
  <p>I am using emacs 24, and I didn't see this issue if I use cedet that comes with emacs.</p>
  
  <p>EDIT : Stack trace attached. Will send this to cedet-delevel mailing list also.   .~/.semanticdb is not created yet( new laptop ).</p>
  
  <pre><code>Debugger entered--Lisp error: (wrong-type-argument stringp 1)
  string-match("\n" 1 0)
  split-string(1 "\n")
  semantic-cpp-defs(1)
  semantic-gcc-setup()
  semantic-default-c-setup()
  semantic-new-buffer-fcn()
  semantic-mode(1)
  eval-buffer(#&lt;buffer  *load*&gt; nil "/home/sudheesh/Dropbox/cedet_new.el" nil t)  ;     Reading at buffer position 898
  load-with-code-conversion("/home/sudheesh/Dropbox/cedet_new.el" "/home/sudheesh/Dropbox /cedet_new.el" nil nil)
  </code></pre>
  
  <p>load("/home/sudheesh/Dropbox/cedet_new.el" nil nil t)
     load-file("~/Dropbox/cedet_new.el")</p>
  
  <p><strong>SOLVED:
  This issue is solved now.  I haven't installed g++ compiler.  The issue is because of this. Installing g++ compiler solved this issue.  Thanks to the support of David Engster from cedet-dlevel mailing list.</strong></p>