Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Fab Newsgroups: comp.lang.c++ Subject: (probably trivial) question about cmath library Date: Tue, 17 Apr 2012 08:06:40 +0200 Organization: albasani.net Lines: 13 Message-ID: <877gxe99jj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.albasani.net R56i2cdMImQxBd7J6TGzG4wAtyLiPR3iysw7NT7wqR7oRcg8nK990zxnWW6fY/xzusa1vi7ZBnTlrGgz1eLlRpMHNL4BLeDogvubUtHbVEgf8DOnKvR4GcVwIX6DK45G NNTP-Posting-Date: Tue, 17 Apr 2012 06:06:40 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="DrO+fMUOlxQLe4iwqglk6rPv1JJyMJTIfTFmPsazCCnsyROmEwGReiMv1ykQS1Mgf/oI3ZH3bPXSxxHbbVA7dfwK7/4xd1UAyMzcR5JbFI+rtgQSNUvI65PvXUo6D/20"; mail-complaints-to="abuse@albasani.net" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:aMRE34GWTOMydIoNP+prwKjirWY= sha1:3ZRzOYZE1nlY7BLKniiquI1yF5A= Xref: csiph.com comp.lang.c++:15415 Dear all, I am a little confused about the std namespace used for all c++ libs. I am using g++ for compilation and I think my issue could also be related to g++ rather than the c++ libs. Here's my issue: When I use #include in my code, I have to use the scope operator or global the namespace std to access e.g. cout. However, when I use #include and want to use e.g. cos from that lib, the above mentioned does somehow not apply. Why? Thank you, Fab