CXXFLAGS: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
New page: CXXFLAGS += <C++ Compiler flags> ... Set '''CXXFLAGS''' when you want to explicitly set C++ compiler options. Use the <code>"+="</code> assignment unless you explicitly intend to...
 
(No difference)

Latest revision as of 16:48, 19 November 2010

CXXFLAGS += <C++ Compiler flags>  ...

Set CXXFLAGS when you want to explicitly set C++ compiler options. Use the "+=" assignment unless you explicitly intend to clear prior settings. This setting is for advanced users that understand command line options for the compiler on the platforms they work with.


Examples:

CXXFLAGS += -L$(G_IMPORT)/sdl/sdl_1.2.13_gcc3/lib   -lSDL              # Linux
CXXFLAGS += -LIBPATH:"$(G_IMPORT)/sdl/sdl_1.2.13_gcc3/lib"  SDL.lib    # Windows