3

I'm trying to create tags for *.c, *.x and *.h files.

These are the following commands which I executed.

find <absolute_path_of_code> -name *.c -o -name *.x -o -name *.h > cscope.files
cscope -bkqc cscope.files

Till here everything is ok.

But after this when I execute the command,

cscope -Rb

I get the following message at console.

cscope: -c or -T option mismatch between command line and old symbol database

How do I resolve this?

Adarsh
  • 883
  • 7
  • 18

2 Answers2

0

If you generate a database using the -c or -T options (you use -c in your original command) you are required to pass those options to every subsequent invocation of cscope. Just add -c to your second command (making it cscope -Rbc) and it should work.

Evan
  • 6,369
  • 1
  • 29
  • 30
  • 1
    No @Evan, this time there is another message. `cscope: -q option mismatch between command line and old symbol database`. – Adarsh Oct 07 '14 at 04:56
  • 1
    @Adarsh - If you figured out the solution by yourself, why not make it an answer to benefit the future generations that arrive here as a result of searching the Internets for the cscope error message (like myself)! – FooF Dec 18 '14 at 08:09
  • 1
    Ya I get it @FooF. I'll move my comment to answer. – Adarsh Dec 30 '14 at 08:52
0

cscope -Rb generates only cscope.out file but cscope -bkqc -I cscope.files generates cscope.in.out, cscope.po.out and cscope.out. So there is no need to execute cscope -Rb.

Adarsh
  • 883
  • 7
  • 18