delorie.com/archives/browse.cgi | search |
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:3669 |
Newsgroups: | comp.os.msdos.djgpp |
Path: | news-dnh.mv.net!mv!news.sprintlink.net!datalytics!news.ahc.ameritech.com!news.heurikon.com!daffy!uwvax!uwm.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!EU.net!sun4nl!cs.vu.nl!rjvdboon |
From: | rjvdboon AT cs DOT vu DOT nl (Boon van der RJ) |
Subject: | Re: undefined reference to ... |
Nntp-Posting-Host: | sloep35.cs.vu.nl |
References: | <DJ5woy DOT E3 AT jade DOT mv DOT net> |
Sender: | news AT cs DOT vu DOT nl |
Organization: | Fac. Wiskunde & Informatica, VU, Amsterdam |
Date: | Wed, 6 Dec 1995 15:53:08 GMT |
Lines: | 42 |
To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
C. N. Feng (fengcn AT essex DOT ac DOT uk) wrote: :> Hi, :> I have downloaded ez-gcc-X.zip recently. :> The versions of gcc and go32 in this package are :> gcc 2.6.0 and go32 1.12.maint3. :> When I ran the test program t02.bat, I got the following error messages. :> undefined reference to 'endl(ostream&)' :> undefined reference to 'cout' :> undefined reference to 'ostream::operator<<(char const*)' :> undefined reference to 'ostream::operator<<(ostream&(*) (ostream&))' :> --- The code for t02.bat is :> gcc -v t02.cc -o t02 -lgpp :> go32 t02 :> --- The code for t02.cc is :> #include<iostream.h> :> main() :> {cout<<"Hello, world from t02.cc!"<<endl;} :> ---------------------------------------------------------------------- :> The zip files for compileing C++ source code are unziped. Did you also get the lgpp26?.zip file, it is needed for the file: libgpp.a If you don't have it, you will not be able to link it :-) :> In the autoexec.bat file, I added :> set DJGPP=C:/DJGPP/DJGPP.ENV :> set GO32=ansi driver c:/djgpp/drivers/stdvga.grn emu c:/djgpp/bin/emu387 :> path=c:/djgpp/bin;..... :> Did I miss anything else? :> Thanks :> Cheng-Ning Feng Hoping to be helpfull: Robert van der Boon
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |