Discussion:
cc and gcc under SCO OPENSERVER 5.0.5
(too old to reply)
r***@gmail.com
2005-12-28 11:38:35 UTC
Permalink
I compile BerkeleyDB 4.4.16 with SCO OSR5.0.5 Development Kit, and
install it to /usr/local/db4.
when I compile my application with cc and CFLAGS = -L/usr/local/db4/lib
-ldb,
it said i386ld fatal: Symbol referencing errors. for
undefined
symbol
db_create
db_strerror
...
So I change gcc 2.95.2 to compile, and it's succeed!
why cc can't build ? what difference between gcc and cc?
thanks a lot!
Bill Campbell
2005-12-28 17:23:22 UTC
Permalink
Post by r***@gmail.com
I compile BerkeleyDB 4.4.16 with SCO OSR5.0.5 Development Kit, and
install it to /usr/local/db4.
when I compile my application with cc and CFLAGS = -L/usr/local/db4/lib
-ldb,
it said i386ld fatal: Symbol referencing errors. for
undefined
symbol
db_create
db_strerror
...
So I change gcc 2.95.2 to compile, and it's succeed!
why cc can't build ? what difference between gcc and cc?
thanks a lot!
Gcc probably searches /usr/local/lib automatically while cc does
not. Add -L/usr/local/lib to your compile statment may help
although I suspect that there would be other problems as the gcc
compiler's generated code may well use things that cc won't
understand or be able to use.

Bill
--
INTERNET: ***@Celestial.COM Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676

Intaxication: Euphoria at getting a refund from the IRS, which lasts until
you realize it was your money to start with.

Loading...