Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Having a major problem w/ code! (http://www.chiefdelphi.com/forums/showthread.php?t=50327)

teh_pwnerer795 07-12-2006 21:58

Having a major problem w/ code!
 
For some reason i can not find this file!:(

C:\Documents and Settings\Teh Pwnerer\Desktop\School!\Robotics\Pervious Years\2005\frc-code-1-12-2005v2.4\FrcCode2005v2.4\user_SerialDrv.c:30: unable to locate 'stdio.h'
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.


where do i start first? mcc18?

Mike 07-12-2006 22:06

Re: Having a major problem w/ code!
 
First two things that come to mind:
  • C-BOT (the compiler) has a 64 byte limitation on file names. Your path is quite large, try moving all the files into something smaller (I have C:\FIRST\Code)
  • Make sure that all the project paths are set correctly. I'm not too sure how to do this without having MPLab in front of me, but I'm sure if you search around you'll find an explanation.

teh_pwnerer795 07-12-2006 22:08

Re: Having a major problem w/ code!
 
naw dont wrry about it .. ima talk to a couple of ppl to get my set up w/ all the code cuz im soo confused w/ all these different ways of doing it:p srry for the confusion

bear24rw 07-12-2006 22:55

Re: Having a major problem w/ code!
 
You project location is way to deep
try moving your project to like
c:\robotics\06\
and recompile, you cant go over like 94 characters or something like that

[edit]sorry, didnt see mike already stated this[/edit]

fimmel 07-12-2006 22:56

Re: Having a major problem w/ code!
 
Quote:

Originally Posted by teh_pwnerer795
For some reason i can not find this file!:(

C:\Documents and Settings\Teh Pwnerer\Desktop\School!\Robotics\Pervious Years\2005\frc-code-1-12-2005v2.4\FrcCode2005v2.4\user_SerialDrv.c:30: unable to locate 'stdio.h'
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.


where do i start first? mcc18?

i'm no expert but could it be that you just speled something wrong? shouldent it be studio.h?
/forest

teh_pwnerer795 07-12-2006 22:58

Re: Having a major problem w/ code!
 
Quote:

Originally Posted by fimmel
i'm no expert but could it be that you just speled something wrong? shouldent it be studio.h?
/forest

lmao ... possibly... im not too sure.. this is like last years code.. and the programmer graduated ... MAYBE! :D... thanxs

Astronouth7303 08-12-2006 17:44

Re: Having a major problem w/ code!
 
"stdio.h" is common, abbreviation of Standard I/O. It includes things like printf().

Dave Scheck 08-12-2006 18:00

Re: Having a major problem w/ code!
 
Quote:

Originally Posted by fimmel
i'm no expert but could it be that you just speled something wrong? shouldent it be studio.h?
/forest

NO!! It is definitely stdio.h.

The problem is most likely that your MPLAB include path isn't configured correctly. We don't use MPLAB so I don't know where the settings are, but I'm sure somebody here will be able to help.

Mark McLeod 09-12-2006 11:41

Re: Having a major problem w/ code!
 
In MPLAB check
Project -> Build Options... -> Project
then on the popup see if "Include Path" is set to c:\mcc18\h

That's where stdio.h is to be found.

teh_pwnerer795 09-12-2006 17:27

Re: Having a major problem w/ code!
 
Quote:

Originally Posted by Mark McLeod (Post 540246)
In MPLAB check
Project -> Build Options... -> Project
then on the popup see if "Include Path" is set to c:\mcc18\h

That's where stdio.h is to be found.

yup i have that ... still getting that error tho... for now.. im just gonna get rid of it .... so that way i can work on some other stuff... if any could find out anthing plz let me noe:)

Plepel 26-01-2007 23:21

Re: Having a major problem w/ code!
 
Quote:

Originally Posted by Mark McLeod (Post 540246)
In MPLAB check
Project -> Build Options... -> Project
then on the popup see if "Include Path" is set to c:\mcc18\h

That's where stdio.h is to be found.

I was having the same problem, and this completly fixed it! Thanks sooo much!

abrockhoff 27-01-2007 21:26

Re: Having a major problem w/ code!
 
Quote:

Originally Posted by bear24rw (Post 539931)
You project location is way to deep
try moving your project to like
c:\robotics\06\
and recompile, you cant go over like 94 characters or something like that

[edit]sorry, didnt see mike already stated this[/edit]

I have to repeat this, try moving your project to a location like c:\code\06 if the path is too long you won't compile.


All times are GMT -5. The time now is 20:32.

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