From: "Caelan" Newsgroups: comp.os.msdos.djgpp Subject: Re: *********** complier problem ************ Date: 4 Jul 1997 13:55:41 GMT Organization: University of Queensland Lines: 48 Message-ID: <01bc8881$d2cf7020$1d2f14ac@marvin> References: <5othme$lu AT ustsu10 DOT ust DOT hk> NNTP-Posting-Host: s335209.student.uq.edu.au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Chan Ka Ming wrote in article <5othme$lu AT ustsu10 DOT ust DOT hk>... > I have installed djgpp and run it under msdos mode of win95 > However every time I compile even a very simple program, I got a lot of the > following compiler-time error. > > > c:/win95/temp\ccdaaaaa(.text+0x1e):string.cc: undefined reference to `cout' > c:/win95/temp\ccdaaaaa(.text+0x23):string.cc: undefined reference to `ostream::operator<<(char const *)' > c:/win95/temp\ccdaaaaa(.text+0x8d):string.cc: undefined reference to `cout' > c:/win95/temp\ccdaaaaa(.text+0x92):string.cc: undefined reference to `ostream::operator<<(char const *)' > > What's wrong with my setting? I have ftp all the required files, namely > csdpmi3b.zip > faq210b.zip > gpp2721b.zip > lgp271b.zip > bnu27b.zip > djdev201.zip > gcc2721b.zip > readme.1st > > My installation directory is c:\dos\djgpp and the environment variable > djgpp=c:\dos\djgpp\djgpp.env, path=c:\dos\djgpp\bin; > > Thanks for your help and attention > > ka ming > I have much the same problem ( "undefined reference to..." errors when I try to compile the grabber.c program) but all allegro examples compile fine. Although to get them to compile I had to move the liballeg.a file into the lib directory for them to compile. I also would like to find out if i'm missing a file or something (I haven't got the G++ files but that shouldn't affect grabber.c i think) Just thought i'd let you know you're not alone! Chow, Caelan