Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #15415
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Fab <fab4100@gmail.com> |
| 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> (permalink) |
| 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 |
Show key headers only | View raw
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 <iostream> 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 <cmath> and want to use e.g. cos from that lib, the above mentioned does somehow not apply. Why? Thank you, Fab
Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread
(probably trivial) question about cmath library Fab <fab4100@gmail.com> - 2012-04-17 08:06 +0200
Re: (probably trivial) question about cmath library SG <s.gesemann@gmail.com> - 2012-04-16 23:18 -0700
Re: (probably trivial) question about cmath library Marc <marc.glisse@gmail.com> - 2012-04-17 07:00 +0000
Re: (probably trivial) question about cmath library Juha Nieminen <nospam@thanks.invalid> - 2012-04-17 06:58 +0000
Re: (probably trivial) question about cmath library Marc <marc.glisse@gmail.com> - 2012-04-17 07:11 +0000
csiph-web