Compiling error with g++ version 2.92

This is a discussion on Compiling error with g++ version 2.92 within the C++ Programming forums, part of the General Programming Boards category; Hi! I've tried compiling with the command "g++ -o thmt.o tree.o gen_tdata.o" and i get this error.. I believe this ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    51

    Compiling error with g++ version 2.92

    Hi! I've tried compiling with the command "g++ -o
    thmt.o tree.o gen_tdata.o" and i get this error..

    I believe this have to do with how g++ handles
    templates...can anyone give me any insight into this
    problem??? Thx! I'm using gcc version 2.92...

    Undefined first referencedsymbol in
    filetree::tree(tree const &)thmt.orangas(int &)
    thmt.otree > >::tree(int, int, int,vector > const
    &)thmt.otree:perator=(tree const
    &)thmt.omatrix:perator=(matrix const
    &)thmt.oranprobs(vector > &, int
    &)thmt.otree::tree(char *) thmt.otree::dump(char *)
    thmt.oranind(vector > const &, int &)thmt.oipow(int,
    int) thmt.otree::tree(int, int, int, int const
    &)thmt.otree > >:perator=(tree > > const
    &)thmt.omatrix::matrix(int, int, double const
    &)thmt.omatrix::matrix(matrix const
    &)thmt.otree::tree(int, int, int, double const
    &)thmt.omain/usr/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/crt1.oran1(int
    &) thmt.old: fatal: Symbol referencing errors. No
    output written to gen_tdata.ocollect2: ld returned 1
    exit status-

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    51
    Hmm..I didn't realize the "cute faces" were active...

    I'll try again...

    Here's the error I'm getting

    Undefined first referencedsymbol in
    filetree::tree(tree const &)thmt.orangas(int &)
    thmt.otree > >::tree(int, int, int,vector > const
    &)thmt.otree::operator=(tree const
    &)thmt.omatrix::operator=(matrix const
    &)thmt.oranprobs(vector > &, int
    &)thmt.otree::tree(char *) thmt.otree::dump(char *)
    thmt.oranind(vector > const &, int &)thmt.oipow(int,
    int) thmt.otree::tree(int, int, int, int const
    &)thmt.otree > >::operator=(tree > > const
    &)thmt.omatrix::matrix(int, int, double const
    &)thmt.omatrix::matrix(matrix const
    &)thmt.otree::tree(int, int, int, double const
    &)thmt.omain/usr/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/crt1.oran1(int
    &) thmt.old: fatal: Symbol referencing errors. No
    output written to gen_tdata.ocollect2: ld returned 1
    exit status-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help Needed with Compiling C program
    By girishaneja in forum C Programming
    Replies: 2
    Last Post: 05-20-2009, 09:10 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  3. Getting version info from resource
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 05-10-2002, 05:33 AM
  4. Version info and ListBox
    By GaPe in forum Windows Programming
    Replies: 10
    Last Post: 03-28-2002, 12:08 AM
  5. Printable version of the C++ tutorials
    By Datamike in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-04-2002, 07:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21