| delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: C++, complex, etc |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <lm6uhso1th87jm2kvs4d747bb1v9s8fsk9@4ax.com> |
| References: | <391F1402 DOT 31B7D4A6 AT mtu-net DOT ru> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 39 |
| X-Trace: | /b/VKWx3qwnj2DAsICogrZ6lUQzaXqGiZzeQqBk36y+Sy352OHaLfenWHS2eWXFWbT7aZB9RjOSC!aizbqySNgFY0KEjngDG7+RhELfo6xcV8/zhLSkEhBCUKblCvYye+RVqYGv1uzLiLOy992l+f2S9n!ftq6f2U= |
| X-Complaints-To: | abuse AT gte DOT net |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
| NNTP-Posting-Date: | Sun, 14 May 2000 21:34:45 GMT |
| Distribution: | world |
| Date: | Sun, 14 May 2000 21:34:45 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Mon, 15 May 2000 01:00:50 +0400, "Alexei A. Frounze"
<alex DOT fru AT mtu-net DOT ru> wrote:
>Hi!
>
>I'm trying to get working the following program:
>----------------8<----------------
>#include <iostream.h>
>#include <complex.h>
Change the above lines to
#include <iostream>
#include <string>
using namespace std;
>int main(void) {
> complex j = complex(0,1);
How about
complex j(0, 1);
> cout << "hello world!\n";
> return 0;
>}
>----------------8<----------------
>
>I'm trying to compile it using: gcc -c test.cc
>But I get an Error: "'complex' undeclared (first use in this function)".
Error on what line?
--
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |