#!/bin/sh # # This can't give gdb enough info to pinpoint the line causing the problem # #gcc -x c++ evol.src -o evol -g # # This causes gdb to seg fault (core dump) # #sed 's/^\( .*\)\\$/\1EOL\\/' evol.src | gcc -x c++ - -E | sed 's/EOL/\ #/g' | tee evol.cpp | gcc -x c++ - -o evol -g # # This works # #sed 's/^\( .*\)\\$/\1EOL\\/' evol.src | gcc -x c++ - -E | sed 's/EOL/\ #/g' 1>evol.cpp #gcc evol.cpp -o evol -lm -lncurses_g -g # # How about... # gcc -v \ -x c++ evol.src \ -lm -lcurses\ -o evol \ -ggdb3 ctags --lang=c++ evol.src