delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/27/07:00:17

From: "ChaoTix" <patrick DOT brouwer AT c-a-t DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Unit Programming
Date: Fri, 27 Sep 2002 12:48:23 +0200
Organization: XS4ALL Internet BV
Lines: 30
Message-ID: <an1d96$2a4$1@news1.xs4all.nl>
NNTP-Posting-Host: 213-84-241-227.adsl.xs4all.nl
X-Trace: news1.xs4all.nl 1033123942 2372 213.84.241.227 (27 Sep 2002 10:52:22 GMT)
X-Complaints-To: abuse AT xs4all DOT nl
NNTP-Posting-Date: 27 Sep 2002 10:52:22 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi all,

I am new to DJGPP and Allegro, and I want to create a VERY simple program
that is using untis for functions. I got this so far (Like I said...very
simple)

<test.cpp>
#include "func.h"
int main()
{  function();
}

<func.h>
void function();

<func.cpp>
void function()
{ // What the function must do
}

Like I said again, its very simple. But I still got a error when building it
all up. The compiler says: "Multiple declaration for 'function'"

Hope somebody helps,

Greetz,

ChaoTix


- Raw text -


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