[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: icc C++ problems on Debian 2.4.27-1-686-smp



On Tue, 2004-11-23 19:36:17 +0000, michael <linux@networkingnewsletter.org.uk>
wrote in message <41A39131.9040104@networkingnewsletter.org.uk>:
> Not sure if this is related but discovered this for gcc/g++ -- any ideas 
> what it means??
> 
> michael@ratty:/tmp$ cat sizes.cpp
> #include <iostream>
> 
> using namespace std;
> 
> int main() {
>   cout << sizeof(char) << "\n";
>   cout << sizeof(int) << "\n";
>   cout << sizeof(float) << "\n";
>   cout << sizeof(double) << "\n";
> }
> michael@ratty:/tmp$ g++ sizes.cpp
> michael@ratty:/tmp$ gcc sizes.cpp
> /tmp/ccmtmIBv.o(.text+0x1b): In function `main':
> : undefined reference to `std::cout'
[...]

You shouldn't expect a C++ program to link without the stdc++ library.

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature


Reply to: