+ cc help.cpp=.cxx + What does it mean ?

+ cc help.cpp=.cxx + What does it mean ?

Post by Bart Hendri » Thu, 19 Oct 1995 04:00:00



--
Hi Unix programmers,

It is the first time on this place in  the net, I have got a question on the
compilation
of some files created by a makefile. I do not understand why the cc command is
invoked
is such a way:

cc help.cpp=.cxx

I would appreciate any help or suggestion, by the way the real
 command does this:

CC    -c    -DCPPV11  -DMOTIF    -DUNIX -DSUN -DSOLARIS  -DCFRONT  
  -I/import/c++views/include  -I/opt/SUNWmotif/include
 -I/usr/openwin/include GenApp.cpp=.cxx

Cheers
    Bart

______________________________________________________________________________

Faculty of Electrical Engineering       |      |   Aart van der Leeuwlaan 117
of Delft University of Technology       | (o)(o)   NL-2624 PM Delft
                                        C      _)  tel/fax: ++31-15-616446
                                         | ,___|  
                                         |   /
_________________________________oOOo___/____\_____oOOo________ Cheer up! ___

 
 
 

1. Finding .c, .cc, .cpp, .cxx and uppercase variants in one go with "find" ?

Hi all

Sorry for the trivial question but I have been unable to
solve this silly issue.

We have a project with C/C++ source codes from many
sources. These have the extensions c, cc, cpp, cxx, C, CC,
CXX, CPP

I want to find all these with a simple oneliner with find.

I have tried find . -type f -name "*.[cC]+[cCpPxX]*" where
I have tried - using "+" - to tell find in a regexp way
that this must have at least one occurrence and that the
other options may or may not occur.

First this doesnt work (with gnu find 4.1.7): No files
are found at all. Leaving out the "+" gives cpp, cxx etc, but
not .C and .c

Second even if it worked it would also match the hypothetical
files with extensions .Cpp, .cXp which are probably not present -
but still it's ugly.

Any good one-liners out there og just a good reference to
a tutorial using regexp with find?

Cheers

/Morten

2. ksh script for rlogin

3. DOS "rename *.cc *.cpp" in unix

4. Unix and Server Clustering

5. where's /usr/ccs/bin/cpp

6. Let's tell vendors about crappy tech support

7. How to send options to cpp through cc?

8. gdb fork

9. cc: error 1405: "/lib/cpp.ansi" terminated abnormally with signal .

10. Forte 6U2, can't find "/usr/ccs/lib/cpp"?

11. /usr/ccs/lib/cpp is missing

12. list of defined constants from cc or cpp

13. Please Help....it′s a very small thing!!!!.PLEASE