This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help g++ problem.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]