|
From: Wobien <roo...@pl...> - 2008-03-01 21:30:11
|
You can link them by using declarations.
Example:
main c-file:
// declaration of myfunc:
int myfunc ( int j);
int main()
{
.
.
.
int i,j;
.
.
.
i = myfunc(j);
.
.
.
}
c-file that implements myfunc:
int myfunc (int j)
{
//code that implements function
.
.
.
}
----- Original Message -----
From: rus...@ao...
To: dev...@li...
Sent: Saturday, March 01, 2008 4:37 AM
Subject: [Dev-C++] linking help needed.
Don't know how to do it, would like to link one c file to another c file. I've tried compiling the 2nd c file, but keep getting weird errors that mention missing variables (that are in the other file).
Help. :)
------------------------------------------------------------------------------
Supercharge your AIM. Get the AIM toolbar for your browser.
------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------------
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|