Go to Post Start simple and build up. - Mark McLeod [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2007, 13:43
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Error when compiling

I've been trying to include the files for the gyro and the encoders. Whenever i try to compile (i'm using MPLab, BTW) it says,
"C:\Documents and Settings\07 code\user_routines.c:24:Error [1027] unable to locate 'encoder.h'
C:\Documents and Settings\07 code\user_routines.c:26:Error [1027] unable to locate 'gyro.h'"

it's included at the beginning of the file and i think i followed every instruction. does anyone know what's wrong?
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
  #2   Spotlight this post!  
Unread 21-01-2007, 13:47
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Error when compiling

Generally, that means you don't have your include directories set up properly. So the compiler is looking for these files that you have #included, but cannot find them. Since I don't have MPLAB in front of me, I can't give you exact instructions, but here goes:

Somewhere in the 'project' menu (or a menu similar to 'project'), there should be an option to set up the compiler or linker, or to set include directories. Once you find that menu, you have to input whereever you put kevin watson code that has 'encoder.h' and 'gyro.h'.
  #3   Spotlight this post!  
Unread 21-01-2007, 14:05
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Error when compiling

YESSSS!!!!!!!!! it works now! thnx!
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Closed Thread


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
stupid Array error: Error [1300] stack frame too l Validius Programming 7 27-01-2006 10:53
Error in Compiling the Camera Code (B&W Version) VetteSlick Programming 7 20-01-2006 20:50
compiling in linux dasRatsel Programming 1 21-05-2005 21:00
InterruptVectorLow error when we compile Redneck Programming 5 02-02-2005 22:57
Error when tried to delete thread... Matt Attallah CD Forum Support 4 18-01-2004 21:37


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

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