erorors

This is a discussion on erorors within the C++ Programming forums, part of the General Programming Boards category; are these actually errors? Code: LinkedList.cpp /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' /tmp/ccUh6cYp.o(.text+0xff): In function `L::log(M*)': : ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    91

    erorors

    are these actually errors?
    Code:
    LinkedList.cpp
    /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start':
    : undefined reference to `main'
    /tmp/ccUh6cYp.o(.text+0xff): In function `L::log(M*)':
    : undefined reference to `M::T() const'
    /tmp/ccUh6cYp.o(.text+0x10e): In function `L::log(M*)':
    : undefined reference to `M::text() const'
    /tmp/ccUh6cYp.o(.text+0x128): In function `L::log(M*)':
    : undefined reference to `M::T() const'
    /tmp/ccUh6cYp.o(.text+0x145): In function `L::log(M*)':
    : undefined reference to `M::T() const'
    /tmp/ccUh6cYp.o(.text+0x163): In function `L::log(M*)':
    : undefined reference to `M::T() const'
    /tmp/ccUh6cYp.o(.text+0x181): In function `L::log(M*)':
    : undefined reference to `M::T() const'
    collect2: ld returned 1 exit status
    ?

  2. #2
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    1) where did they come from
    2) post code
    3) generate a more specific title
    4) follow rules 1-3
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    If it generates an executable, then there was no error, just warnings. You won't get an executable if there are errors. However, you may have the old executable around, so you may think you don't have problems. In your case, yes, you have problems.

    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Registered User
    Join Date
    Jul 2004
    Posts
    91
    thanks, i must have been working on it for soo long that i couldnt see what i was compiling!
    i was missing a file when compiling.. what a classic..
    thanks anyway guys

Popular pages Recent additions subscribe to a feed

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