Emerson wrote:
I mean how can i call a function which is in another project?
Should i build the function into a libary or something like
.dll? And how?
There is no such thing as a dll or a project in the C language.
There is a provision for a "compilation unit", and after that
virtually all systems provide for linking separate object modules,
which have been created from a compilation unit (essentially the
source file and anything included in it). libraries and dlls are a
means of storing such object modules (not defined in C) until an
appropriate time for linking. That time may be at runtime (dynamic
linking). All these variants are system specific and are not
specified by the language, and are thus off-topic here.
Read the documentation on your particular compiler/linker and/or
your make utility (which in turn may be hidden inside an IDE
masquerading as a project). Go to a newsgroup dealing with your
particular system for more accurate advice on that system.
--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!