www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/04/18:21:48

Message-ID: <005801be5095$4fd10480$2bf9c6c3@johans-dator>
From: "Johan Henriksson" <johan DOT he AT telia DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Errors when using ".h" headers
Date: Fri, 5 Feb 1999 00:23:01 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

from Johan Henriksson, Sweden    HTTP://come.to/jhewok  |
Primary mail: johan DOT he AT telia DOT com                  #UIN 12035895
Second: jhe75 AT hotmail DOT com    Third: johan_he AT yahoo DOT com
Leadprogrammer and FX-specialist at Real software
http://come.to/real_software
*************************************************************************


>Hello,
>
>I tried to compile and make the file arctest.c (example file located under
>/djgpp/test/arctest.c). This file starts with the following include files;
>
>#include <string.h>
>#include "test.h"
>.....
>...
>
>Compiling is no problem, but when I try to link it, there are errors like;
>
>Error arctest.o: in function 'drawing'
>Arctest.c(16)Error: undefined reference to 'GrFilledBox'
>.....
>...
>
>I supose there are problems to locate the header "test.h", because any
>other c-file without #include "..." headers work.
>
>I tried gcc and rhide but it doesn't work.
>
>Can anyone explain me (exactly) what I need to do in rhide to make it
>work?
>
>

Hmm.. Hard problem. I _suppose_ you have the header in the same directory as
the .c file. Here's a common misstake:

void func2
 {
 myfunc();
 }

void myfunc() {}

It gives the same errormessage as your program. Put in a prototype in the
beginning to make it work:

void myfunc();


I really hope this solves your problem 'cause I have no idéa what can be
wrong else.

CYA

- Raw text -


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