Go to Post Who has time for boredom? - Dr Theta [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 24-02-2004, 19:01
Charley's Avatar
Charley Charley is offline
Alumnae, Capt v2 for ever.
None #1350
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Providence
Posts: 38
Charley is on a distinguished road
Send a message via AIM to Charley
Problems with MPLAB

I got the following error when trying to build:

C:\Documents and Settings\donnyb\Desktop\FIRST\Frc\Rev 03\ifi_aliases.h:18: malformed #include directive
error 1 spawning c:\mcc18\bin\cpp18

MPLAB has not been used on this computer yet, but all the files have built correctly on our other computer. So... is it a software problem?

Thanks,
Char.
__________________
Team 1350

Manchester 2003 Rookie All Stars

  #2   Spotlight this post!  
Unread 24-02-2004, 19:35
WCS V WCS V is offline
Registered User
#1168 (Malvern Prep Robotics)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Malvern, PA
Posts: 16
WCS V is an unknown quantity at this point
Re: Problems with MPLAB

I think that the problem is that the path is too long. MPLAB has a problem with paths that are more than 32 characters. Try a shorter path.
__________________
WCS - Chief Technology Officer Malvern Prep Robotics #1168
"I can only do that in the code if its physically possible for it to happen."
  #3   Spotlight this post!  
Unread 24-02-2004, 19:36
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,856
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: Problems with MPLAB

Quote:
Originally Posted by Charley
I got the following error when trying to build:

C:\Documents and Settings\donnyb\Desktop\FIRST\Frc\Rev 03\ifi_aliases.h:18: malformed #include directive
error 1 spawning c:\mcc18\bin\cpp18

MPLAB has not been used on this computer yet, but all the files have built correctly on our other computer. So... is it a software problem?

Thanks,
Char.
One problem is your project is too far down in the directory tree. Move FIRST to the top level of your C drive, e.g., "C:\FIRST\Frc\Rev 03"
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 24-02-2004, 19:47
Charley's Avatar
Charley Charley is offline
Alumnae, Capt v2 for ever.
None #1350
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Providence
Posts: 38
Charley is on a distinguished road
Send a message via AIM to Charley
Re: Problems with MPLAB

I just fixed that, now the same error occurs with the new directory
__________________
Team 1350

Manchester 2003 Rookie All Stars

  #5   Spotlight this post!  
Unread 24-02-2004, 20:43
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Problems with MPLAB

Quote:
Originally Posted by Charley
I just fixed that, now the same error occurs with the new directory
New message, please? Have you tried reinstalling MPLAB? Did you install from the CD included with your Edu Robot/controller? Did you follow the FIRST specific installation instructions? Did you miss installing the C18 compiler?
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #6   Spotlight this post!  
Unread 24-02-2004, 21:11
Paradox1350's Avatar
Paradox1350 Paradox1350 is offline
FORMER Captain now Jealous Onlooker
None #1350 (Rambot)
 
Join Date: Jan 2004
Location: Rhode Island
Posts: 80
Paradox1350 is on a distinguished road
Re: Problems with MPLAB

I'm on Charley's team. We have not tried reinstalling. We lost the disc that came with the EDU bot kit and transfered the files from one computer to the laptop that we have. The program works on the original computer, but not the laptop. I have no idea whether or not we are missing the C18 compiler.
  #7   Spotlight this post!  
Unread 24-02-2004, 21:14
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,856
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: Problems with MPLAB

Quote:
Originally Posted by Paradox1350
I'm on Charley's team. We have not tried reinstalling. We lost the disc that came with the EDU bot kit and transfered the files from one computer to the laptop that we have. The program works on the original computer, but not the laptop. I have no idea whether or not we are missing the C18 compiler.
Do you have a "c:\mcc18" directory? That's the compiler.

The error you are getting occurs the first time you try to access a file in the mcc18 directory called adc.h

This can occur if it is missing, but also if your MPLAB project is not set-up correctly. You can check under Project->Build Options...->Project to see everything's set properly.

Include Path c:\mcc18\h
Library Path c:\mcc18\lib

and for good measure under the MPLAB C18 tab is _FRC_BOARD listed under Macro Definitions?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-02-2004 at 21:22.
  #8   Spotlight this post!  
Unread 24-02-2004, 21:32
Paradox1350's Avatar
Paradox1350 Paradox1350 is offline
FORMER Captain now Jealous Onlooker
None #1350 (Rambot)
 
Join Date: Jan 2004
Location: Rhode Island
Posts: 80
Paradox1350 is on a distinguished road
Re: Problems with MPLAB

We do have a "c:\mcc18" directory.

Message: "error 1 spawning C:\mcc18\bin\cpp18" after I verified the build options were set properly. I have no idea what this means!
  #9   Spotlight this post!  
Unread 24-02-2004, 21:36
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Problems with MPLAB

i'm willing to guess it just means that mcc18 didn't like something you sent it, hence the "malformed #include directive" error - look at line 18 in ifi_aliases.h and see if someone accidentally bumped a key and inserted a character or something.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #10   Spotlight this post!  
Unread 24-02-2004, 21:59
zeep25's Avatar
zeep25 zeep25 is offline
Registered User
AKA: Adil Karim
#0369 (Team Nuts and Volts)
Team Role: Webmaster
 
Join Date: Jan 2004
Location: Brooklyn, NYC
Posts: 26
zeep25 is an unknown quantity at this point
Send a message via AIM to zeep25 Send a message via Yahoo to zeep25
Re: Problems with MPLAB

wait so ur saying u didnt have the mplab cd so you copied the files (the mplab and mcc18) from the other computer where it works :s ?

if so try this ... remove the directories and download the MPLAB[30 Megs] and mcc18 (demo)[10 megs] from the microchip website

and install the mplab first and tghen mcc18 ... make sure when ur installing mcc18 you check on when it asks you to configure mplab to use this version of mcc18 and stuff ...

if you didnt copy the files over and installed them ... try removing them from add/remove program and then do a fresh clean installation (as mentioned above)

btw what is the directory path to the files now ?
__________________
Roles: Programmer, Webmaster, (All rounder) including Electrical and Mechanical
Gearbox - Team Nuts and Volts - 369
http://www.gearbox36.org/
  #11   Spotlight this post!  
Unread 24-02-2004, 22:25
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,856
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: Problems with MPLAB

Quote:
Originally Posted by Paradox1350
We do have a "c:\mcc18" directory.

Message: "error 1 spawning C:\mcc18\bin\cpp18" after I verified the build options were set properly. I have no idea what this means!
Check the toolsuite locations.
under Project->Select Language Toolsuite...

Under Toolsuite Contents "MPLAB C18 C Compiler (mcc18.exe)" should be listed.
Click on that line and see that the Location shows "C:\mcc18\bin\mcc18.exe"
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #12   Spotlight this post!  
Unread 25-02-2004, 09:50
Descartes's Avatar
Descartes Descartes is offline
Team Philosopher
AKA: Ryan
#0378 (Circuit Stompers)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Right Behind You
Posts: 9
Descartes has a little shameless behaviour in the past
Re: Problems with MPLAB

We had the exact same problem, same errors and everything. Its turns out its an occasional MPLAB bug where the compiler cannot locate the Language Toolsuite , even if you have it pointing right at it. We actually tried the exact method that McLeod there suggested. Didn't work. Only solution we found was to back up your source code and uninstall and reinstall MPLAB.
__________________
"The longer one holds on to a memory... the longer one lives in the past. The deeper the memory they hold onto is... the more beautiful the past will become. The beautified memories will eventually turn into hate... Even if they look ahead, they lose the ability to walk. As long as the heavy chain called Revenge continues to fetter the heart. As long as the tears of sadness continue to flow."

"Dangerous toys are fun, but you could get hurt!"

"The Deadly Dodgeball Head! A simple technique to hold the ball in place with intense suction! Try this at home kids!!"

"I am known as Valentinez Alkalinella Xifax Sicidabohertz Gombigobilla Blue Stradivari Talentrent Pierre Andri Charton-Haymoss Ivanovici Baldeus George Doitzel Kaiser III. Don't hesitate to call."
  #13   Spotlight this post!  
Unread 25-02-2004, 10:28
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,856
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: Problems with MPLAB

Quote:
Originally Posted by Descartes
We had the exact same problem, same errors and everything. Its turns out its an occasional MPLAB bug where the compiler cannot locate the Language Toolsuite , even if you have it pointing right at it.
Just curious, what version of MPLAB are each of you using?
We're running MPLAB 6.4 downloaded from the Microchip site, rather than the 6.3 version shipped with the EDU Bot.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #14   Spotlight this post!  
Unread 25-02-2004, 15:12
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Problems with MPLAB

Quote:
Originally Posted by Paradox1350
We do have a "c:\mcc18" directory.

Message: "error 1 spawning C:\mcc18\bin\cpp18" after I verified the build options were set properly. I have no idea what this means!
Is there a cpp18 there?
Quote:
Originally Posted by deltacoder1020
i'm willing to guess it just means that mcc18 didn't like something you sent it, hence the "malformed #include directive" error - look at line 18 in ifi_aliases.h and see if someone accidentally bumped a key and inserted a character or something.
I think it's more likely that it means that when it encountered the #include directive, and went to spawn cpp18.exe (the preprocessor) it didn't find it in C:\mcc18\bin where it expected to find it.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #15   Spotlight this post!  
Unread 25-02-2004, 15:29
Descartes's Avatar
Descartes Descartes is offline
Team Philosopher
AKA: Ryan
#0378 (Circuit Stompers)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Right Behind You
Posts: 9
Descartes has a little shameless behaviour in the past
Re: Problems with MPLAB

The problem occured on our backup PC, while I was updating it. Our main computer for programming had the up - to - date version, but the backup did not.

Incidentally, I discovered another solution. Under "Projects, Build Options, Project." Click on the General tab. If your Include Directory does not have anything in it, point it at the c:/mcc18/

This worked for us.
__________________
"The longer one holds on to a memory... the longer one lives in the past. The deeper the memory they hold onto is... the more beautiful the past will become. The beautified memories will eventually turn into hate... Even if they look ahead, they lose the ability to walk. As long as the heavy chain called Revenge continues to fetter the heart. As long as the tears of sadness continue to flow."

"Dangerous toys are fun, but you could get hurt!"

"The Deadly Dodgeball Head! A simple technique to hold the ball in place with intense suction! Try this at home kids!!"

"I am known as Valentinez Alkalinella Xifax Sicidabohertz Gombigobilla Blue Stradivari Talentrent Pierre Andri Charton-Haymoss Ivanovici Baldeus George Doitzel Kaiser III. Don't hesitate to call."
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
MPLAB Variable Simulator? Chris_Elston Programming 3 18-02-2004 12:08
If you're having MPLAB problems, LOOK HERE. Jeremy_Mc Programming 0 20-01-2004 18:06
Im Having Problems With Mplab!!!! hedgehogger Programming 2 20-01-2004 17:43
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24
Do you all have problems with.... Munkaboo Website Design/Showcase 19 03-03-2003 19:51


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

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