CXX

From VrlWiki
Jump to navigation Jump to search
CXX<Program> = <C++ Source>.cpp ...

Designate C++ source files that are to be built for each program. The G.Build system recognizes the .cpp and .C suffixes. The .cpp suffix is recommended since Windows is not case sensitive and does not distinguish between .C and .c; which can be confusing and requires quoted names.

PROGRAM = myProgram
CXXmyProgram = myProgram.cpp  mySubroutine.cpp


By convention the file containing a C++ "main" method has the same name as the program.