You can use any type of extend , I use .c for ALL my files.
The files of DC lib directory are the only lib files for my projects.
Two rules:
Add the exact and absulute path name of your files in lib.dir file
Respect exactly the syntax of lib files for declare functions and variables
extract of my lib.dir file
....
LIB\ADDON\UDPDEBUG.LIB
LIB\ADDON\SERDOWNL.LIB
E:\PROJETS\RABBIT\ELM\SOURCES\IO_B18.C
E:\PROJETS\RABBIT\ELM\SOURCES\IO_PROTO.C
E:\PROJETS\RABBIT\ELM\LIB\I2C.LIB
....
and extract of E:\PROJETS\RABBIT\ELM\SOURCES\IO_B18.C
/*** BeginHeader InitPortIO */
void InitPortIO();
/*** EndHeader */
void InitPortIO()
{
...
...
}
José Luis Segatto Junior a écrit :
Hi
My english is poor, but i will try help you.
On Dinamic C we have not #include, instead it we use #use (think you know it).
We can have only a file .c anoters will be .lib that will be attached
to .c with #use clause.
To make a lib visible is needed that it have reference in lib.dir
file. On my installation of Dinamic C lib.dir is on D:\dcrabbit\.
Think that the only fail is that you put not a reference on lib.dir.
hope that i help zuzé
from Brasil (Brazil)
------------------------------- * tel: 01 39 04 29 53 * * r...@webdyn.com * -------------------------------