Try PKGDATADIR="\"/home/pecan/proj/cgdb/\"".
Thanks, I tried it, but this must be some sort of gcc-4.0 error. It should work, but doesn't.
Thanks for the suggestion.
I don't think I want to battle this any more.
I'll just hard code it and move on to understanding how pseudo-terminals work.
I'm not planning on living with this code anyway. I just want to port the concept to CB. But it does tell me, in future, not to do such a thing in a CB project.
-------------- Build: cgdb in cgdb ---------------
gcc-4.0 -Wall -g -DHAVE_CONFIG_H -DPKGDATADIR="\"/home/pecan/proj/cgdb/doc\"" -DPKGLIBDIR=/home/pecan/proj/cgdb/ -DPKGINCLUDEDIR=/home/pecan/proj/cgdb/ -Wall -g -Icgdb/lib/kui/inc -Ivarious/adt/include -Ivarious/util/include -I/home/pecan/proj/cgdb -Icgdb/include -Ivarious/rline/include -Icgdb/include -Icgdb/tokenizer/include -Itgdb/tgdb-base/include -I/usr/include -c /home/pecan/proj/cgdb/cgdb/src/interface.c -o .obj/cgdb/src/interface.o
/home/pecan/proj/cgdb/cgdb/src/interface.c: In function 'if_display_help':
/home/pecan/proj/cgdb/cgdb/src/interface.c:1537: error: syntax error before '/' token
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 0 warnings