libCrun & libCstd aren't C libraries, they're C++ libraries specific to the Studio C++ compiler and incompatible with g++'s different C++ ABI. gcc isn't able to even find them since there are no libCrun.so or libCstd.so in your library path - the -lCrun flag looks for exactly libCrun.so, without any trailing .1 or other version numbers. As I recently learned, the .so links for the Studio C++ libraries are in a path the Studio C++ compiler automatically includes at build time, but not in the common /usr/lib path.
On 08/25/11 23:21, Musical Shore wrote: > I removed CFLAGS...still getting same error. Why can't it see the C libs? > > Sent from mobile > > On Aug 26, 2011, at 2:09 AM, "James C. McPherson" <j...@opensolaris.org> > wrote: > >> On 26/08/11 04:02 PM, Musical Shore wrote: >>> I'm not using studio, I'm using gcc from sunfreeware. Can I not compile >>> with this GCC? Sun Studio is large, I dont think I have the space for it. >> >> Darryl's point was that you appear to be using the _flags_ >> for Studio with gcc. Not that you're using Studio. >> >> Try unsetting any CFLAGS or CXXFLAGS set in your environment, >> and re-run configure. >> >> >> James C. McPherson >> -- >> Oracle >> http://www.jmcp.homeunix.com/blog > _______________________________________________ > opensolaris-code mailing list > opensolaris-code@opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code