Mail Archives: djgpp/1997/07/04/14:42:52
Chan Ka Ming <ee_ckmaa AT uxmail DOT ust DOT hk> 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
- Raw text -