From: "Eamon McDermott" Newsgroups: comp.os.msdos.djgpp Subject: Ack! Help a newbie and he'll be forever grateful (problems with IOSTREAM) Date: Sat, 18 Apr 1998 12:48:48 -0400 Lines: 204 NNTP-Posting-Host: hunt-annex-port19.vianet.on.ca Message-ID: <3538d9f5.0@209.91.128.12> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I am at my wit's end here! I downloaded all of the files that were given by the Zip Picker yesterday, and installed them all. I tried compiling a "Hello World" program, and DJGPP wouldn't co-operate. Here is the source for the program... #include int main(void) { cout << "Hello World!!\n"; return (0); } When I try compiling it without an IDE, gcc gives the following output... c:/djgpp/tmp/ccaaaaaa1.o(.text+0x19):hello.cpp: undefined reference to `cout' c:/djgpp/tmp/ccaaaaaa1.o(.text+0x1e):hello.cpp: undefined reference to `ostream::operator<<(char const *)' And when I try compiling it within RHIDE I get this... Creating: hello.exe Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or directory (ENOENT) There were some errors If I try the same thing but instead use STDIO.H and printf, the program works fine. I'm quite sure that this is some sort of LFN problem, but I just got DJVERIFY, ran it and the only problem it reported was a moderate shortage of memory. I also have searched through the FAQ, and the only thing that looks like it would help would be disabling the numeric tail, and then reinstalling the C++ headers/libs, but I no longer have the file. Could I just disable the numeric tail and rename the libstdcxx.a?? But I don't think this will do anything; the libstdcxx.a isn't a 8 letter filename, so DJGPP shouldn't be having trouble with it as a result of being mangled with a tail. So what can I do? I've included the output of DJVERIFY (the system report) Can anyone help me? -Eamon (emcdermott AT iname DOT com) begin 666 sysrpt00.log M"2 @(" @+2TM+2T]/3T]/2!$2D=04"!3>7-T96T AT 4F5P;W)T(&9I;&4@/3T] M/3TM+2TM+0T*(" @($=E;F5R871E9"!B>2!$2E9%4DE&62!V97)S:6]N(# N M-"!!;'!H82!O;B!3870 AT 07!R(#$X(#$R.C$V.C,Q(#$Y.3@-"@T*#0H@(" @ M5&AI&5C+F)A=" J*BHJ*B @(" @#0I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