Go to Post I need to start sleeping now to make up for build season - Kingofl337 [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 19-01-2007, 12:38
itsme itsme is offline
Registered User
FRC #2217 (FOMH)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Israel
Posts: 86
itsme is an unknown quantity at this point
Simple question on MPLabs

Well, I'm usually programming in easyC pro, but to be on the safe side, I'm starting to learn MPLabs to. I have downloaded kevin's camera code, but when I compile it fails to compile and tells me it didn't find the stdio.h.
I tried to add the stdio.h file from borlandC (maybe it's a stupid thing, but just to give it a shot), and still, didn't work.
What am I doing wrong?
  #2   Spotlight this post!  
Unread 19-01-2007, 12:44
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Simple question on MPLabs

You just don't have the path set that tells the compiler where to find the system include files.

In MPLAB pull-down:
Project -> Build Options... -> Project

Set "Include Path" to C:\mcc18\h (you can browse there)
and
Set "Library Path" to C:\mcc18\lib

P.S.
You don't want to use any system files, such as stdio.h, from any other compiler than what came with mcc18.
They are Microchip PIC and C18 specific.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-01-2007 at 12:48.
  #3   Spotlight this post!  
Unread 19-01-2007, 12:50
itsme itsme is offline
Registered User
FRC #2217 (FOMH)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Israel
Posts: 86
itsme is an unknown quantity at this point
Re: Simple question on MPLabs

Ok, thanks. Now it worked. And I've noticed it had problems if the the file path length is larger than 62 chars.
  #4   Spotlight this post!  
Unread 19-01-2007, 12:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Simple question on MPLabs

Quote:
Originally Posted by itsme View Post
Ok, thanks. Now it worked. And I've noticed it had problems if the the file path length is larger than 62 chars.
That can be solved by a button click too if you don't want to bother moving your files (I'm kind of lazy).

Project -> Build Options... -> Project
Go to the "MPLINK Linker" tab
Click on "Suppress COD-file generation"

Creating that file is when you get the 62 character limit message, and it isn't used by us for anything so it's unnecessary anyway.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 19-01-2007, 14:22
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
Re: Simple question on MPLabs

Quote:
Originally Posted by Mark McLeod View Post
That can be solved by a button click too if you don't want to bother moving your files (I'm kind of lazy).

Project -> Build Options... -> Project
Go to the "MPLINK Linker" tab
Click on "Suppress COD-file generation"

Creating that file is when you get the 62 character limit message, and it isn't used by us for anything so it's unnecessary anyway.
We are trying to use mplab to compile kevins code and we keep getting a message no source files even though we brought over the c files. how do i get these to compile.
  #6   Spotlight this post!  
Unread 19-01-2007, 15:02
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Simple question on MPLabs

Quote:
Originally Posted by sniggel View Post
We are trying to use mplab to compile kevins code and we keep getting a message no source files even though we brought over the c files. how do i get these to compile.
MPLab works with collections of files called "projects". You can open and edit arbitrary text files with it, but you can only compile a project. Projects are defined in .mcp files, and you open them by choose "open project" from the "project" menu.
  #7   Spotlight this post!  
Unread 19-01-2007, 15:42
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
Re: Simple question on MPLabs

We did that, and included the c files in the project and still go no soure files??? Not sure what to do, am I right that you create new project,
add files from existing files from kevins code so that you can compile and rebuild? That is what we did but when we try to build the project we are getting the no source files even though they are in the directory
  #8   Spotlight this post!  
Unread 20-01-2007, 00:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Simple question on MPLabs

You should be starting with a predefined project, either the default code from IFI or the camera-enabled code from Kevin's site. Unless you're already very experienced with MPLab, there's no reason for you to create a project yourself.

If you start with the default code and want to add encoder or gyro support, for example, you should follow the very clear directions included with each module Kevin provides.

Last edited by Alan Anderson : 20-01-2007 at 00:11.
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
Quick Simple Question ImmortalAres Programming 8 17-06-2005 13:08
simple joystick question vexingspector Programming 5 19-02-2005 18:55
MPLABS Question Bharat Nain Programming 13 16-05-2004 16:19
simple question... answer it archiver 2001 1 24-06-2002 01:02
simple engineering question Ben Mitchell Technical Discussion 2 07-11-2001 07:50


All times are GMT -5. The time now is 04:13.

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