Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cxref-cpp(1) [debian man page]

cxref-cpp(1)						      General Commands Manual						      cxref-cpp(1)

NAME
cxref-cpp - A modified C preprocessor to use with cxref. SYNOPSIS
cxref-cpp ... DESCRIPTION
To improve the output that is available for the source code for cross-referencing a modified version of the GNU CPP v2.7.2 is supplied (named cxref-cpp). This modified C preprocessor allows for a finer control over some features of the preprocessing that are not important for a compiler. In a standard preprocessor, the preprocessor directives are intended for use only by the preprocessor, so passing the information through is not important. With cxref-cpp, there are some features that are different to the standard GNU CPP: Compared to gcc versions earlier than version 2.8.0 there is an extra option that will output the #include lines from the source file. In version 2.8.0 and later this option is present. Comments trailing a #include or a #define are not preserved by all versions of gcc even if the -C option is used. This is not important while compiling, but is useful for documenting. The cxref-cpp program will take on the personality of the installed version of gcc so that the gcc header files can be parsed. This means that it includes the same default include directory paths and macro definitions. The file that contains these definitions is called cxref-cpp.defines and is installed by the cxref-cpp-configure program or specified by the -cxref-cpp-defines command line option. OPTIONS
The same as for gcc, apart from '-cxref-cpp-defines' described above. SEE ALSO
cxref(1), cxref-cpp-configure(1), gcc(1) May 9, 2004 cxref-cpp(1)

Check Out this Related Man Page

cxref(1)						      General Commands Manual							  cxref(1)

Name
       cxref - generate C program cross reference

Syntax
       cxref [options] files

Description
       The  command  analyzes a collection of C files and attempts to build a cross reference table.  The command utilizes a special version of to
       include #define'd information in its symbol table.  It produces a listing on standard output of all symbols (auto, static, and  global)	in
       each file separately, or with the -c option, in combination.  Each symbol contains an asterisk (*) before the declaring reference.

Options
       -c	 Prints a combined cross-reference of all input files.

       -Dname	 Defines name to processor, as if by #define.  Default value is 1.

       -Idir	 Searches named directory for files whose names do not begin with a backslash (/).

       -o file	 Directs output to named file.

       -s	 Operates silently; does not print input file names.

       -t	 Formats listing for 80-column width.

       -Uname	 Removes any initial definition of name.

       -w<num>	 Width	option	which formats output no wider than <num> (decimal) columns.  This option will default to 80 if <num> is not speci-
		 fied or is less than 51.

Diagnostics
       Error messages usually indicate a problem that will prevent the file from compiling.

Files
       /usr/lib/xcpp	special version of C-preprocessor.

See Also
       cc(1).

																	  cxref(1)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

How to complie a c++ program in Unix or Cygwin?

Can I use gcc to compile a piece of c++ code? Do I need to name the file that contains the code as .cpp? Thank you (14 Replies)
Discussion started by: meili100
14 Replies

2. UNIX for Advanced & Expert Users

gcc & make error- Help please

Folks; I'm trying to install gcc-3.4.6 & install SWIG tool on Solaris 10 (Sparc), but when i try to run make for gcc i got this error below: make: Fatal error: Command failed for target `all-gcc' and when i try to run "make install" to install swig, i got this error: *** Error code 2... (10 Replies)
Discussion started by: moe2266
10 Replies

3. Linux

c++ compilation error

Hello every one, here i am attempting to compile a c++ module using gcc.it is throwing a error . error: ==== > make -S dummyCHARGP /usr/local/bin/gcc -g -DDEBUG -DMAT -I. -I/swtemp/usbs/cc/unix-ce/root/subsys/lib/Linux/ -I/opt/dce/include -I/opt/dce/include/dce ... (12 Replies)
Discussion started by: mannam srinivas
12 Replies

4. Programming

Not able to run gcc

Hi, I am working with solaris 9(SunOS mgsun 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Blade-100).I install the gcc 3.4.6 from sunfreeware website and when I am trying to run it,I am getting the error-- # gcc ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory Killed... (12 Replies)
Discussion started by: smartgupta
12 Replies

5. Shell Programming and Scripting

differentiating two sets for filenames????

set 1 ./abc@@/main/61 ./def.cpp@@/main/13 ./fgh.cpp@@/main/16 ./ijk.cpp@@/main/12 ./mln.cpp@@/main/9 ./uvw.cpp@@/main/30 set2 ./eww@@/main/61 ./def.cpp@@/main/13 ./xxx.cpp@@/main/26 ./kkk.cpp@@/main/72 ./qqq.cpp@@/main/19 ./fgh.cpp@@/main/16 I have two sets with filenames in... (13 Replies)
Discussion started by: skyineyes
13 Replies

6. Shell Programming and Scripting

AWK Help

Sett1: ./cwhelper/tcwhelper.cpp@@/main/62 ./cwhelper/tcwhelper1.cpp@@/main/62 ./cwhelper/tcwhelper2.cpp@@/main/62 ./cwhelper/tcwhelper3.cpp@@/main/62 Sett2: ./cwhelper/tcwauthlatesettreqcreen.hpp@@/main/1 ./cwhelper/tcwhelper1.cpp@@/main/6 ./cwhelper/tcwhelper.cpp@@/main/64... (12 Replies)
Discussion started by: skyineyes
12 Replies

7. OS X (Apple)

fftw libraries

hi everyone, I need fftw3 libraries (FFTW Installation on the MacOS) but I can't succeed in installing them on my Mac OSX. I tried with "./configure make make install" procedure, fink and macports but my programs always ask me "fftw.h" files? can you help me? thank you!! ... (12 Replies)
Discussion started by: federico_tn84
12 Replies

8. Programming

Good C debugger ?

I'm a C newbie using gcc. I wrote a program but a part of it outputs gibberish onto the terminal. Its weird because identical parts of the program work correctly in another program I wrote :confused:. My program uses c99 + some POSIX headers. It compiles with no errors/warnings even though I have... (15 Replies)
Discussion started by: cyler
15 Replies

9. Programming

Gcc with pipe

I want to compile all files in my directory i wrote find *.c | gcc -o * *.c but it dosent work :( Help pliz (12 Replies)
Discussion started by: rzili
12 Replies

10. Solaris

No cc/gcc installed on SunOS 5.10

Hi All: this work machine has no gcc installed, the only cc is located at: /usr/ucb/cc but this does not do a make, I get error: "/usr/ucb/cc: language optional software package not installed". Meaning cc is not fully installed, correct? I do not want to get root/sysadmin involved on... (17 Replies)
Discussion started by: steve701
17 Replies

11. Solaris

Need gcc binary for a SPARC machine

The machine I am trying to compile on does have /usr/sfw/bin and all the files in it, EXCEPT gcc !! This is a SUN Sparc-1 machine, so the binary does matter to match this. Can someone send me a gcc so I can put it locally for compilation purposes? Or point me a a site that has a compiled-ready... (17 Replies)
Discussion started by: steve701
17 Replies

12. Programming

Segmentation fault in fopen when in write mode.

Hi All, Although this code is quite long but it does not require one to understand the logic of the code. I am trying to run this code on my Linux machine using gcc. But when this line is executed: output_pointer = fopen ( file_name , "w" );I get segmentation fault. I've been breaking my head... (17 Replies)
Discussion started by: shoaibjameel123
17 Replies

13. UNIX for Advanced & Expert Users

Installing gcc on Fedora

I am trying to install gcc4.8.2 on fedora but have encountered problems. This is the error I got when running configure configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. So I went along to install the three of them I installed gmp-4.3.2 which went ok ... (14 Replies)
Discussion started by: kristinu
14 Replies

14. UNIX for Advanced & Expert Users

AIX 7.1 gcc 4.8.5 issue

hey guys , after migrate our AIX server from 6.1 to 7.1 , we insalled c compilator with rpm files Server:root:/ > rpm -qa | grep gcc libgcc-4.8.5-1 gcc-cpp-4.8.5-1 gcc-4.8.5-1 gcc-c++-4.8.5-1 but whene we proceed to compile a c programm we have this error exec(): 0509-036... (17 Replies)
Discussion started by: yahia
17 Replies

15. UNIX for Advanced & Expert Users

Gcc g++ on cygwin - configure: error: *** A compiler with support for C++11 language features is req

Hi, Apologies if I posted it in a wrong section as it is related to gcc on cygwin. Please move it to appropriate section. I'm trying to compile and build libsigc++-2.10.2 on cygwin with gcc 8.3.0. when I run ./configure, I get this: I couldn't fully understand what does... (13 Replies)
Discussion started by: prvnrk
13 Replies