Go to Post we learned that's what happens when you start building without even thinking about weight. next year, we'll lighten everything BEFORE we mount it. - greencactus3 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 03-02-2008, 00:01
Kilroy0846 Kilroy0846 is offline
Registered User
FRC #2139
 
Join Date: Jan 2007
Location: Las Vegas
Posts: 28
Kilroy0846 is an unknown quantity at this point
Calling functions from other documents

In MPLAB, how do I call functions from other files in a project?

Here is my code:
Code:
static int counter;

counter = Get_Encoder_3_Count();
And the Get_Encoder_3_Count() function is located in the file encoder.c

Here is the function code:
Code:
long Get_Encoder_3_Count(void)
{
	long count;

	INTCONbits.RBIE = 0;

	count = Encoder_3_Count;
	
	INTCONbits.RBIE = 1;

	return(count);
}
The error that I get is:

Error - could not find definition of symbol 'Get_Encoder_3_Count' in file 'V:\frc-code-2007-8722\FrcCode_2007_8722\user_routines.o'.

Last edited by Kilroy0846 : 03-02-2008 at 00:03. Reason: Added The Error Text
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling C functions from EasyC koenig3456 Programming 4 27-01-2006 16:03
How Do I Program My RC To Spot One wheel From Going faster than the other Kyle1010 Programming 5 12-01-2003 15:30
Stack height Poll (spawn from other thread) Andrew Rudolph Chit-Chat 5 07-01-2003 17:15
Legality Issues Regarding Gears From other vendors kilpatrick Rules/Strategy 1 17-02-2002 09:04
And once more from the top... GLORIA! GEFORCE 3! AND OTHER CARDS... Robby O 3D Animation and Competition 1 24-01-2002 20:12


All times are GMT -5. The time now is 23:54.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi