"Fossies" - the Fresh Open Source Software Archive

Member "mapm_4.9.5a/mkdemo" (21 Feb 2010, 446 Bytes) of package /linux/misc/old/mapm-4.9.5a.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 	#
    2 	#  compile and link the 4 demo programs  (Unix systems with GCC)
    3 	#
    4 rm -f calc validate primenum cpp_demo
    5 #
    6 gcc -Wall -O2 calc.c libmapm.a -s -static -o calc -lm
    7 gcc -Wall -O2 validate.c libmapm.a -s -static -o validate -lm
    8 gcc -Wall -O2 primenum.c libmapm.a -s -static -o primenum -lm
    9 #
   10 #
   11 #         to compile and link the C++ demo program
   12 #         using the C++ MAPM wrapper class.
   13 #
   14 g++ -Wall -O2 -o cpp_demo cpp_demo.cpp libmapm.a -lm
   15 #