delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/12/19:05:14

From: "Sean Pajot" <deathsead66 AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <7eqph5$ase$1 AT aquila DOT tiscalinet DOT it>
Subject: Re: help a student
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Message-ID: <LquQ2.69$ho1.16@tundra.ops.attcanada.net>
Date: Mon, 12 Apr 1999 22:26:51 GMT
NNTP-Posting-Host: 142.194.222.237
X-Trace: tundra.ops.attcanada.net 923956011 142.194.222.237 (Mon, 12 Apr 1999 22:26:51 GMT)
NNTP-Posting-Date: Mon, 12 Apr 1999 22:26:51 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

An undefined reference means you did something like:

invalid_function(45, "Hello there", "No I don't");

When "invalid_function" is never defined anywhere at all (or at least what
files the compiler is told to search). "main" is the function that gets
executed as the start of your code. I can see 3 ways you could get this
error:

1) There is no main function (which I doubt)
2) You forgot to include it's file in your project
3) You may have put some capitals in it's name. C/C++ is very case
sensetive. Main and main are different things.

Does this help?


--
Sean

To reply, change "@notmail.com" to "@hotmail.com"


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019