Article View: dc.org.linux-users
Article #97g++: fixed and showpoint error messages
From: Damon Riley
Date: Mon, 02 Jun 2003 00:55
Date: Mon, 02 Jun 2003 00:55
40 lines
2786 bytes
2786 bytes
Hi. I'm taking my first programming class (online, UMUC) and we're using C++. I'm the only Linux user in the class. My program won't compile if I use either the fixed or showpoint functions. I took my code to a Windows Visual C++ program and got it to compile and run. The TA for the class can get it to run, too, so I will be getting credit for the program regardless of whether it runs on my machine, but I want to know why I can't compile it on Linux. My project2planB.cpp generates this message when I use the fixed function and I try to compile it with g++: project2planB.cpp: In function `int main ()': project2planB.cpp:37: `fixed' undeclared (first use this function) project2planB.cpp:37: (Each undeclared identifier is reported only once for each function it appears in.) My source header reads: #include <iostream> #include <cmath> #include <iomanip> using namespace std; and my text book says iomanip includes fixed and showpoint. Is this not true for Linux? I'm using gcc-2.96 on Red Hat Linux 7.3. If you know what's going on please send me a clue, or if you know of a website that's comprehensible to rookies that would help me with this then pointing me to it would be welcome. Thanks, Damon Olney, MD
Technical Details
Message-ID:
<2tWcnUNr7u7-PEejXTWcpA@comcast.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!small1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11663c,83d6812d819079b9,start X-Google-Attributes: gid11663c,public X-Google-ArrivalTime: 2003-06-01 17:59:14 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!small1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 01 Jun 2003 19:59:15 -0500 Date: Sun, 01 Jun 2003 20:55:47 -0400 From: Damon Riley <damonriley@alumni.DONTSPAM.umass.edu> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: dc.org.linux-users Subject: g++: fixed and showpoint error messages X-Enigmail-Version: 0.75.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <2tWcnUNr7u7-PEejXTWcpA@comcast.com> Lines: 41 NNTP-Posting-Host: 68.50.126.108 X-Trace: sv3-3YOkcxOGf5J7+8mCQ5D3dN2ok5eSxtkCRUZamL0xfC+wgfE3YscDgJr77KxfjbOlOHysyqmG3qlozmc!geNzF4TmQIXlOegdH6QBDNETLm6CRCZQQCSqQv2ZA+DJYbxWl2asYh6wF22HTA== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1