public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Help g++ SLList linking problem.
       [not found] <616BE6A276E3714788D2AC35C40CD18D30FB8B@whale.softwire.co.uk>
@ 2002-01-21  1:45 ` Rupert Wood
  2002-01-21  3:15   ` cesar tejeda
  0 siblings, 1 reply; 3+ messages in thread
From: Rupert Wood @ 2002-01-21  1:45 UTC (permalink / raw)
  To: 'cesar tejeda'; +Cc: gcc-help

Cesar Tejeda wrote:

> I have a very simple program on C++ using SLList that
> doesn´t link.
:
> gxx tstsllist.cpp -Ic:/prog31/djgpp/lang/cxx/

What's an SLList? Is it a DJGPP extension or something you wrote
yourself? I don't think it's in the main GCC distribution.

Either way, it looks like you need to link in whichever library SLList
is defined in.

Rup.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Help g++ SLList linking problem.
  2002-01-21  1:45 ` Help g++ SLList linking problem Rupert Wood
@ 2002-01-21  3:15   ` cesar tejeda
  0 siblings, 0 replies; 3+ messages in thread
From: cesar tejeda @ 2002-01-21  3:15 UTC (permalink / raw)
  To: Rupert Wood; +Cc: gcc-help

it is a class for g++ defined in libgpp. I found it
in info documentation of libgpp.

 --- Rupert Wood <me@rupey.net> escribió: > Cesar
Tejeda wrote:
> 
> > I have a very simple program on C++ using SLList
> that
> > doesn´t link.
> :
> > gxx tstsllist.cpp -Ic:/prog31/djgpp/lang/cxx/
> 
> What's an SLList? Is it a DJGPP extension or
> something you wrote
> yourself? I don't think it's in the main GCC
> distribution.
> 
> Either way, it looks like you need to link in
> whichever library SLList
> is defined in.
> 
> Rup.
>  

_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Help g++ SLList linking problem.
@ 2002-01-21  1:26 cesar tejeda
  0 siblings, 0 replies; 3+ messages in thread
From: cesar tejeda @ 2002-01-21  1:26 UTC (permalink / raw)
  To: gcc-help

Hello everybody.

I have a very simple program on C++ using SLList that
doesn´t link.
I'm using DJGPP environment, with gcc303, gpp303,
lgp2952.

I give the following command line:

gxx tstsllist.cpp -Ic:/prog31/djgpp/lang/cxx/

(c:/prog31/djgpp/lang/cxx/ is where I have cxx
includes)

and gives me the following linker error:

C:\DOCUME~1\CESAR~1.TEJ\CONFIG~1\Temp\ccRG5hYY.o(.gnu.linkonce.t._ZN6SLListIiE6a
ppendERKi+0x10):tstsllist.cpp: undefined reference to
`BaseSLList::append(void c
onst*)'
C:\DOCUME~1\CESAR~1.TEJ\CONFIG~1\Temp\ccRG5hYY.o(.gnu.linkonce.t._ZN6SLListIiEcl
EPv+0x18):tstsllist.cpp: undefined reference to
`BaseSLList::error(char const*)
const'
C:\DOCUME~1\CESAR~1.TEJ\CONFIG~1\Temp\ccRG5hYY.o(.gnu.linkonce.t._ZN6SLListIiED1
Ev+0x1a):tstsllist.cpp: undefined reference to
`BaseSLList::clear()'
C:\DOCUME~1\CESAR~1.TEJ\CONFIG~1\Temp\ccRG5hYY.o(.gnu.linkonce.t._ZN6SLListIiED0
Ev+0x1a):tstsllist.cpp: undefined reference to
`BaseSLList::clear()'
collect2: ld returned 1 exit status

THE PROGRAM IS THE FOLLOWING:
//---------------------------------
#include <../lang/cxx/SLList.h>
#include <iostream.h>

typedef SLList<int> Lint;
Lint l;
int main(void){
    for(int i=0;i<10;i++) l.append(i);
    for(Pix p=l.first();p!=0;l.next(p))
cout<<l(p)<<endl;
    return 0;
}
//---------------------------------

Any hint???



_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-21 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <616BE6A276E3714788D2AC35C40CD18D30FB8B@whale.softwire.co.uk>
2002-01-21  1:45 ` Help g++ SLList linking problem Rupert Wood
2002-01-21  3:15   ` cesar tejeda
2002-01-21  1:26 cesar tejeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).