Go to Post sheesh, how much more of a nerd can I be? - Libby K [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
  #16   Spotlight this post!  
Unread 29-01-2005, 18:39
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: 2005 default code won't compile

Can you give us the exact error message?
  #17   Spotlight this post!  
Unread 30-01-2005, 00:49
ElGeeko's Avatar
ElGeeko ElGeeko is offline
Registered User
AKA: Kyle
#1375 (Megabites)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Aurora, CO
Posts: 7
ElGeeko is an unknown quantity at this point
Send a message via AIM to ElGeeko Send a message via MSN to ElGeeko
Re: 2005 default code won't compile

Quote:
Originally Posted by Astronouth7303
Can you give us the exact error message?
It was a few posts before, only there wasn't a line specifically for stdio.

Quote:
Originally Posted by ElGeeko
Code:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "control.c" -fo="c:\code\code_v2.4\control.o" /i"C:\Dev-Cpp\include" /i" c:\code\code_v2.4" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
c:\code\code_v2.4\control.c:11: unable to locate 'stdio.h'
c:\code\code_v2.4\control.c:12: unable to locate 'ifi_aliases.h'
c:\code\code_v2.4\control.c:13: unable to locate 'ifi_default.h'
c:\code\code_v2.4\control.c:14: unable to locate 'ifi_utilities.h'
c:\code\code_v2.4\control.c:15: unable to locate 'user_routines.h'
c:\code\code_v2.4\control.c:16: unable to locate 'user_Serialdrv.h'
c:\code\code_v2.4\control.c:17: unable to locate 'user_routines.c'
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Fri Jan 28 00:07:44 2005
  #18   Spotlight this post!  
Unread 30-01-2005, 13:15
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,906
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: 2005 default code won't compile

Quote:
Originally Posted by ElGeeko
It was a few posts before, only there wasn't a line specifically for stdio.
I notice you haven't corrected your typo. There's no such thing as a blankC drive.

You should probably go back to the defaults and get it compiling before you attempt to redirect everything.
In MPLAB go to Project -> Build Options... -> Project and clear all fields (and I mean ALL fields) except for Include Path (C:\mcc18\h) and Library Path (C:\mcc18\lib).
You can also hit "Suite Defaults" to clear them for you, but make sure you have the Include Path C:\mcc18\h (no blanks).
Don't add anything else.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-01-2005 at 13:21.
  #19   Spotlight this post!  
Unread 30-01-2005, 23:33
ElGeeko's Avatar
ElGeeko ElGeeko is offline
Registered User
AKA: Kyle
#1375 (Megabites)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Aurora, CO
Posts: 7
ElGeeko is an unknown quantity at this point
Send a message via AIM to ElGeeko Send a message via MSN to ElGeeko
Re: 2005 default code won't compile

I did fix the error you talked about (I just copied and pasted from the other post). I do know about there being no blank c drive

Everything (but lib and inc, which are set correctly) is already blank. Still nothing.
__________________
If you want something done right, you gotta first read the <fine> manual and then do it the command line way.
  #20   Spotlight this post!  
Unread 31-01-2005, 09:26
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,906
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: 2005 default code won't compile

Quote:
Originally Posted by ElGeeko
I did fix the error you talked about (I just copied and pasted from the other post). I do know about there being no blank c drive



Everything (but lib and inc, which are set correctly) is already blank. Still nothing.
Odd. The blankC is still there in your compile listing ( /i"C:\Dev-Cpp\include" /i" c:\code\code_v2.4), and the include setting for c:mcc18/h is not. I hope you didn't copy and paste from my post. That just highlighted the "blank" error.
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "control.c" -fo="c:\code\code_v2.4\control.o" /i"C:\Dev-Cpp\include" /i" c:\code\code_v2.4" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Can you compile the default 2.4 code?

You show several paths that are not part of the MPLAB default settings, so I assume you set them up. Are you using the "Use Alternate Settings" in MPLAB look under Project -> Build Options... -> Project, then the MPLAB C18 tab? If you are then add the c:mcc18/h path there as well.

Your compile line should look like:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "main.c" -fo="main.o" /i"c:\mcc18\h" -D_FRC_BOARD -D_USE_CMU_CAMERA
If you cannot get the mcc18/h path into the compile statement you might consider uninstalling MPLAB IDE and reinstalling it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 31-01-2005 at 09:53. Reason: Whenever I edit the system adds lots of blank lines
  #21   Spotlight this post!  
Unread 03-02-2005, 23:57
Plloyd Plloyd is offline
Registered User
no team
 
Join Date: Sep 2004
Location: Toronto
Posts: 6
Plloyd is an unknown quantity at this point
Re: 2005 default code won't compile

I am also having a problem with printf_lib.h

I can compile the default code, however, if i add the printf_lib.h and .c files that are in the default code directory, and attempt to use the printf function, it gives me the following error:

[path]\printf_lib.h:15:Error [1109] type mismatch in redeclaration of 'printf'

I am using v2.4 of the compiler (new computer - old version was never installed), and my build paths are all correct.

The error occurs whenever i include the printf_lib.h file
(ie, i can delete #include "printf_lib.h" and it will compile perfectly... put it back and i get the same error again).

Any help would be greatly appreciated.

Thanks,
Plloyd
  #22   Spotlight this post!  
Unread 04-02-2005, 07:38
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,906
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: 2005 default code won't compile

Quote:
Originally Posted by Plloyd
I am also having a problem with printf_lib.h

I can compile the default code, however, if i add the printf_lib.h and .c files that are in the default code directory, and attempt to use the printf function, it gives me the following error:
Don't include the printf_lib.h or printf_lib.c files. They are old and no longer necessary.
The new compiler comes with a new printf routine. Adding the old printf routine on top of the default one caused the compiler to get confused about which of the two it should use.

Instead, add:
#include <stdio.h>
to any file that needs to use printf.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #23   Spotlight this post!  
Unread 04-02-2005, 18:21
Plloyd Plloyd is offline
Registered User
no team
 
Join Date: Sep 2004
Location: Toronto
Posts: 6
Plloyd is an unknown quantity at this point
Re: 2005 default code won't compile

Thanks Mark,
that worked beautifully.
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
2005 default code kevin.fort Programming 33 20-01-2005 16:32
2005 RC Master Code or yaniv Programming 8 12-01-2005 12:05
2005 Manuals, FRC Default Code, Other resources Venkatesh General Forum 4 08-01-2005 14:06
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Is default code already loaded? quickie25 Electrical 8 19-02-2004 22:51


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

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