Web Images Maps Groups Scholar Blogs Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Undefined reference Problem

View parsed - Show only message text

Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
From: "Mike Wahler" <mkwah...@mkwahler.net>
Newsgroups: comp.lang.c++
Subject: Re: Undefined reference Problem
Date: Mon, 3 Mar 2003 14:04:38 -0800
Organization: MindSpring Enterprises
Lines: 44
Message-ID: <b40jct$s2$1@slb6.atl.mindspring.net>
References: <Pine.GSO.4.44.0303031427340.17954-100000@csu016.cs.ualberta.ca>
NNTP-Posting-Host: 40.9a.b8.9b
X-Server-Date: 3 Mar 2003 22:02:05 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200


Chris Bruyere <bruy...@ugrad.cs.ualberta.ca> wrote in message
news:Pine.GSO.4.44.0303031427340.17954-100000@csu016.cs.ualberta.ca...
> Hi All, im running Mandrake 9, I'm trying to compile a program, using g++
> and a makefile. I have a number of classes:
>
> class Fud
> {
>   some dynamic memory allocations
> }
>
> class Foo  (.h file)
> {
> public:
>   Foo();
>
> protected:
>   Fud f1;
> }
>
> Foo::Foo()
> {
>   f1 = new Foo();
> }
>
>
> When I compile this I get an undefined reference problem. I know this is a
> linker issue instead of a compiler problem. But I can't find a solution. I
> have defined both a constructor and destructor for Foo and Fud.
>
> Any help would be greatly apprecieated.

There's a car somewhere which has no wheels.
Here's a picture of it.

When I start my car, I get an exhaust problem.
I know this is engine trouble and not a problem
with the radio. I did fasten my seatbelt before
starting the engine. What could be the trouble?

-Mike




Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google