Article View: gnu.gcc.help
Article #42482include and lib defaults
From: Jonathan Edwards
Date: Wed, 06 Dec 1995 00:00
Date: Wed, 06 Dec 1995 00:00
27 lines
1559 bytes
1559 bytes
I have built gcc2.7.2 and libg++2.7.1 for RS6000-AIX4.1.4. I have also tried installing pre-built binaries from an archive site. In both cases I have difficulty getting include and library files to be found. Being a Unix newbie I do not know if this is a real problem or just one of the myriad things I am expected to know innately. gcc does not automatically use the fixed .h files it creates. Even the libg++ build is not smart enough to use the fixed header files that gcc made. Am I supposed to copy these somewhere? Or define an environment variable? gcc further does not automatically use libg++. In order to compile a hello world program in C++ I have to use -liostream or -lg++. Other programs I have tried to compile still get undefined iostream symbols even with those switches. I also find that gcc is not finding cpp, cc1plus or libgcc.a which are in the source tree. So at first glance it seems to me that gcc is very confused about what its default paths for includes and libraries and executeables should be. I did a normal build, allowing /usr/local to be the default prefix for everything. Any help is appreciated.
Technical Details
Message-ID:
<DJ6F5F.yG@world.std.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,860b0f85b88afac1,start X-Google-Attributes: gid11318c,public From: edwards@intranet.com (Jonathan Edwards) Subject: include and lib defaults Date: 1995/12/06 Message-ID: <DJ6F5F.yG@world.std.com> X-Deja-AN: 121063384 sender: news@world.std.com (Mr Usenet Himself) organization: IntraNet, Inc newsgroups: gnu.gcc.help