Subject: Compiler prob?
To: None <netbsd-help@NetBSD.ORG>
From: Patrick Welche <prlw1@cam.ac.uk>
List: netbsd-help
Date: 06/29/1998 19:41:43
Weirdity: when typing "make", the #include search path is different to
when the compile line make outputs is executed!?

quartz% make
c++ -v -I../../aa -I../../obs -I../../include -I/usr/local/Hughes/include -I/usr/local/include/fcgi -Wall -g  -c /home/marc/rw/post/post/post.cc
Using builtin specs.
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
 /usr/libexec/cpp -lang-c++ -v -I../../aa -I../../obs -I../../include -I/usr/local/Hughes/include -I/usr/local/include/fcgi -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -Dunix -Di386 -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__unix__ -D__i386__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__unix -D__i386 -Asystem(unix) -Asystem(NetBSD) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -g -Wall /home/marc/rw/post/post/post.cc /var/tmp/cc10652a.ii
GNU CPP version egcs-2.90.27 980315 (egcs-1.0.2 release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/Hughes/include
 /usr/local/include/fcgi
 /usr/include/g++
 /usr/include
End of search list.
/home/marc/rw/post/post/post.cc:12: rwcode.h: No such file or directory
/home/marc/rw/post/post/post.cc:13: protos.h: No such file or directory
/home/marc/rw/post/post/post.cc:14: ui_hooks.h: No such file or directory
/home/marc/rw/post/post/post.cc:15: swap.h: No such file or directory
*** Error code 1

Stop.
quartz%
quartz%
quartz%
quartz% c++ -v -I../../aa -I../../obs -I../../include -I/usr/local/Hughes/include -I/usr/local/include/fcgi -Wall -g  -c /home/marc/rw/post/post/post.cc
Using builtin specs.
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
 /usr/libexec/cpp -lang-c++ -v -I../../aa -I../../obs -I../../include -I/usr/local/Hughes/include -I/usr/local/include/fcgi -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -Dunix -Di386 -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__unix__ -D__i386__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__ -D__unix -D__i386 -Asystem(unix) -Asystem(NetBSD) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -g -Wall /home/marc/rw/post/post/post.cc /var/tmp/cc10687a.ii
GNU CPP version egcs-2.90.27 980315 (egcs-1.0.2 release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 ../../aa
 ../../obs
 ../../include
 /usr/local/Hughes/include
 /usr/local/include/fcgi
 /usr/include/g++
 /usr/include
End of search list.
 /usr/libexec/cc1plus /var/tmp/cc10687a.ii -quiet -dumpbase post.cc -g -Wall -version -o /var/tmp/cc10687a.s
GNU C++ version egcs-2.90.27 980315 (egcs-1.0.2 release) (i386-netbsd) compiled by GNU C version egcs-2.90.27 980315 (egcs-1.0.2 release).
/home/marc/rw/post/post/post.cc: In function `int main(int, char **)':
/home/marc/rw/post/post/post.cc:106: warning: unused variable `float left'

... a few warnings and a working program is generated.

Any ideas?

Cheers,

Patrick

(NetBSD-current/i386)