On Sunday 17 March 2002 08:18 pm, Terry Lambert wrote: > > ../stlport/ctime:25:44: ../g++-v3/ctime: No such file or > > directory > > [ ... ] > > > ../g++-v3/cwchar:69: `mbstate_t' not declared > > [ ... ] > > > Anybody knows what I could do ? > > You have to hack up your Makefiles and CXXINCLUDES and CFLAGS > to make the ports version of the headers files be seen first, > even though you have DESTDIR set. > > The only way this will work is if you hack the Makefile(s) to > make sure that the absolute patch to the ports versions of the > paths occur on the command line before the system versions, > which is not as simple as just setting CXXINCLUDES or CFLAGS, > and it varies from application to application how you have to > do it, particularly if your port happens to use something > evil like "autoconf". > > The only other way to deal with this is to deinstall the > system compiler, and replace it with the new compiler, > and then replace the system header files with the replacement > versions of the header files, so that when the DESTDIR crap > happens, it ends up ointing to the right include files instead > of the wrong ones. > > -- Terry
Since the port of STLport is designed as a drop in replacement for the system STL, I've always used the -nostdinc++ option in my projects so that gcc won't even look at the default header files. This option should be used when building the port itself. As the STLport maintainer, I should have specified that. :-( -- Paul Marquis [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message