Hi! I'm trying to compile llvm 2.2 with gcc 4.3.0 on FC8. My compile is failing with the following error(s): error: invalid use of incomplete type 'struct std::basic_ostream<char, std::char_traits<char> >' If you've run into this, how did you get around this issue? thx in advance! -Bernardo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080403/f550e66c/attachment.html>
On Thu, Apr 3, 2008 at 10:51 PM, Bernardo Elayda <belayda at gmail.com> wrote:> I'm trying to compile llvm 2.2 with gcc 4.3.0 on FC8. > > My compile is failing with the following error(s): > > error: invalid use of incomplete type 'struct std::basic_ostream<char, > std::char_traits<char> >' > > If you've run into this, how did you get around this issue? >GCC 4.3 cleaned up its headers to make them much lighter, and that's exactly the kind of error that many, many people that weren't properly conformant by including everything they used are now getting. You could probably work around it by including <ostream> yourself before including the header with the error, if it's just in a header, but adding it to the headers or upgrading to a newer (maybe SVN) LLVM would probably be a better choice.
Apparently Analagous Threads
- [LLVMdev] LLVM 2.3 available as a VMware appliance
- [LLVMdev] Newbie question on front-end and code compaction
- [LLVMdev] Which linux distribution required the least effort to install LLVM 2.3?
- [LLVMdev] Info on LLVM 2.3 which is available as a virutal appliance
- [LLVMdev] Noob questoin on ExecutionEngine::create