Re: Using functions from src in util

From: Welcor (welcor@dune.net)
Date: 12/04/01


----- Original Message -----
From: "Cathy Gore" <cheron@ARCANEREALMS.ORG>


> When I go to compile it, it's telling me "undefined reference to
> load_char".  similar for clear_char and free_char.  Is there a way to get
> it to recognize the functions from the main src in the util dir?  Or am I
> stuck and have to rewrite the autowiz to include it as part of the circle
> executable?

Add the line

#include "../db.h"

to include prototypes[1] for the database funcs.

Welcor

[1] A prototype is needed for the compiler to know how where to search for
    specific functions, and how they are supposed to be called.
    In your case load_char(), etc.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/24/03 PDT