The file example.cc contains simple program illustrating a few features of the L_function class. To build it, we assume that you've installed libLfunction and its headers to locations where your compiler and linker know how to find them -- if not by default, then using the -I and -L C preprocessor flags (CPPFLAGS). To build the example, run "make -f Makefile.example" from within this directory. A few standard environment variables affect the outcome: * CXX: the name of your C++ compiler (default: c++) * CXXFLAGS: flags to pass to the C++ compiler (default: empty) * CPPFLAGS: flags to pass to the C++ preprocessor (default: empty) * LDFLAGS: flags to pass to the linker (default: empty) * LIBS: the "-l<library>" flags for the linker (default: -lLfunction) Examples: 1. Compile using g++ from the GNU Compiler Collection: $ make CXX="g++" -f Makefile.example 2. Compile with g++, using a few performance optimizations: $ make CXX=g++ CXXFLAGS="-march=native -O2 -pipe" -f Makefile.example 3. Compile using clang++ from LLVM: $ make CXX="clang++" -f Makefile.example 4. Build against a copy of lcalc installed under /usr/local, and execute the result: $ export CPPFLAGS="-I/usr/local/include" $ export LDFLAGS="-L/usr/local/lib" $ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib" $ make -f Makefile.example $ ./example 5. Build in C++17 mode: $ make CXXFLAGS="-std=c++17" -f Makefile.example
Generated by dwww version 1.15 on Sat May 18 14:07:15 CEST 2024.