Date: Sat, 30 Mar 2002 13:40:07 +0100 (CET) From: Alexander Leidinger <Alexander@Leidinger.net> To: corecode@corecode.ath.cx Cc: hackers@freebsd.org Subject: Re: lang/icc doesn't compile c++ sources Message-ID: <200203301240.g2UCe77S013694@Magelan.Leidinger.net> In-Reply-To: <20020330130126.161bd651.corecode@corecode.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On 30 Mär, Simon 'corecode' Schubert wrote: > but i can't get icc to compile a single c++ source: > it always fails on the headers. > > just a simple echo '#include<iostream>' > comp.cc > won't compile. i've tested the include files of > o icc > o gcc 2.95.3 (the one from my base system, 4.5-S) > o gcc 3.0.4 (from the ports) > > each one gives me a different error. I tried this: --snip--- #include<iostream> int main(void) { cout << "Hello World"; exit(0); } ---snip--- - gcc from -current didn't fails (and no errors). - icc complains about: ---snip--- test.cpp: "/usr/include/stdlib.h", line 57: error: invalid combination of type specifiers typedef _BSD_WCHAR_T_ wchar_t; ^ "/usr/local/intel/compiler50/ia32/include/cwchar", line 16: error: the global scope has no "tm" using ::mbstate_t; using ::size_t; using ::tm; using ::wint_t; ^ "/usr/local/intel/compiler50/ia32/include/cwchar", line 19: error: the global scope has no "btowc" using ::btowc; ^ "/usr/local/intel/compiler50/ia32/include/cwchar", line 22: error: the global scope has no "mbrlen" using ::mbrlen; using ::mbrtowc; using ::mbsrtowcs; ^ [and so on] ---snip--- I think this is because of our wchar implementation (mostly a stub if I remember correctly), but I could be wrong on this. > if not, i'd like to work on that, but i don't know where to start. If you have to patch some Intel headers, then you have to work on a "make pre-patch" version of icc. Don't forget to apply patch-include by hand before you make diffs. Bye, Alexander. -- The best things in life are free, but the expensive ones are still worth a look. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203301240.g2UCe77S013694>