![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
koenbielen
Joined: 23 Apr 2009 Posts: 42
|
Compiler problem |
Posted: Mon Apr 22, 2013 3:42 am |
|
|
Hi,
I have installed Win 7.
Reinstalled MPLAB and PIC CCS compiler.
Done all the updates.
but now my project does not compile anymore.
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\N-schijf\Projects\Jaga\Oxygen_ECAB\002_PIC_Software\001_CCS\001_Sources\Jaga_Oxygen_ECAB.ESYM".
Clean Warning: File "C:\N-schijf\Projects\Jaga\Oxygen_ECAB\002_PIC_Software\001_CCS\001_Sources\Jaga_Oxygen_ECAB.o" doesn't exist.
Clean: Deleted file "C:\N-schijf\Projects\Jaga\Oxygen_ECAB\002_PIC_Software\001_CCS\001_Sources\Jaga_Oxygen_ECAB.ERR".
Clean: Deleted file "C:\N-schijf\Projects\Jaga\Oxygen_ECAB\002_PIC_Software\001_CCS\001_Sources\Jaga_Oxygen_eCAB.mcs".
Clean: Done.
Executing: "C:\Program files\Picc\CCSC.exe" +FH "Jaga_Oxygen_ECAB.c" #__DEBUG=1 +ICD +LN I+="C:\Program Files\PICC\Devices\" +T +A +M -Z +Y=9 +EA #__18F4525=TRUE
*** Error 18 "Jaga_Oxygen_ECAB.c" Line 164(10,20): File can not be opened
Not in "C:\Program Files\PICC\Devices\string.h"
Not in project "C:\N-schijf\Projects\Jaga\Oxygen_ECAB\002_PIC_Software\001_CCS\001_Sources\string.h"
*** Error 18 "Jaga_Oxygen_ECAB.c" Line 167(10,20): File can not be opened
Not in "C:\Program Files\PICC\Devices\STDLIB.h"
Not in project "C:\N-schijf\Projects\Jaga\Oxygen_ECAB\002_PIC_Software\001_CCS\001_Sources\STDLIB.h"
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 1437(28,29): Undefined identifier -- strlen
*** Error 76 "Jaga_Oxygen_ECAB.c" Line 1437(55,56): Expect ;
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2231(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2238(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2243(24,25): Undefined identifier -- strtoul
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2246(27,28): Undefined identifier -- strlen
*** Error 76 "Jaga_Oxygen_ECAB.c" Line 2246(54,55): Expect ;
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2260(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2262(26,27): Undefined identifier -- strtoul
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2265(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2266(22,23): Undefined identifier -- strlen
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2269(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2271(23,24): Undefined identifier -- strtoul
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2288(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2290(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2292(23,24): Undefined identifier -- strtoul
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2294(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2296(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2298(27,28): Undefined identifier -- strtoul
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2322(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2503(9,10): Undefined identifier -- strncpy
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2505(14,15): Undefined identifier -- strtod
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 2892(14,15): Undefined identifier -- rand
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 3654(28,29): Undefined identifier -- strlen
*** Error 76 "Jaga_Oxygen_ECAB.c" Line 3654(55,56): Expect ;
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 3700(28,29): Undefined identifier -- strlen
*** Error 76 "Jaga_Oxygen_ECAB.c" Line 3700(55,56): Expect ;
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 5455(33,34): Undefined identifier -- rand
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 5519(33,34): Undefined identifier -- rand
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 5545(33,34): Undefined identifier -- rand
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 5571(33,34): Undefined identifier -- rand
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 5585(33,34): Undefined identifier -- rand
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 5715(36,37): Undefined identifier -- rand
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 5768(28,29): Undefined identifier -- strlen
*** Error 76 "Jaga_Oxygen_ECAB.c" Line 5768(59,60): Expect ;
*** Error 12 "Jaga_Oxygen_ECAB.c" Line 5777(9,10): Undefined identifier -- strncpy
*** Error 51 "Jaga_Oxygen_ECAB.c" Line 5779(15,16): A numeric expression must appear here -- strtoul
39 Errors, 0 Warnings.
Build Failed.
Halting build on first failure as requested.
BUILD FAILED: Mon Apr 22 11:35:12 2013
Compiler version V4.140
MPLAB 9.8
Build options are
Normal CCS format
Debug none
+LN I+="$(INCDIR)" +T +A +M -Z +Y=9 +EA
Help is appreciated
Thank you
greetings |
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9177 Location: Greensville,Ontario
|
|
Posted: Mon Apr 22, 2013 5:04 am |
|
|
from your first error..
Executing: "C:\Program files\Picc\CCSC.exe" +FH "Jaga_Oxygen_ECAB.c" #__DEBUG=1 +ICD +LN I+="C:\Program Files\PICC\Devices\" +T +A +M -Z +Y=9 +EA #__18F4525=TRUE
*** Error 18 "Jaga_Oxygen_ECAB.c" Line 164(10,20): File can not be opened
...
I'd guess the default file locations for MPLAB are not what you used to have before you upgradedyour OS.
hth
jay |
|
![](templates/subSilver/images/spacer.gif) |
koenbielen
Joined: 23 Apr 2009 Posts: 42
|
|
Posted: Mon Apr 22, 2013 6:16 am |
|
|
Hi thanks for fast reply.
Paths are the same. double checked it.
![Sad](images/smiles/icon_sad.gif) |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19378
|
|
Posted: Mon Apr 22, 2013 7:26 am |
|
|
I'd guess permissions. Note it doesn't say that the file doesn't exist, it says it cannot be opened. Try running the compiler via a short-cut set to 'run as administrator'.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
|
Posted: Mon Apr 22, 2013 7:41 am |
|
|
I think he needs to re-install the compiler.
One easy workaround is to put string.h and stdlib.h from
C:\Program Files\PICC\Devices\ in the project directory
with the project files. _________________ Google and Forum Search are some of your best tools!!!! |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19378
|
|
Posted: Mon Apr 22, 2013 8:16 am |
|
|
Yes.
I'd wonder if he copied the source data across from an older system, and didn't handle the difference between 'program files', and 'program files (x86)'.
If you install, this is automatically handled, but copied, the stuff would be in the wrong location.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
koenbielen
Joined: 23 Apr 2009 Posts: 42
|
|
Posted: Mon Apr 22, 2013 9:28 am |
|
|
I am the admin of the PC. so rights is not a problem
Did not copy but used the installer and did the latest updates.
Also did the MPLAB plugin setup.
I will try to copy the string.h file but its not the correct way for me.
If updates are done then i need to copy to all projects. not manageable.
thanks for ideas and replies everyone |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
|
Posted: Mon Apr 22, 2013 4:02 pm |
|
|
Your next option is to locate the PCW.ini file under documents and settings an edit it manually to fix the problem. _________________ Google and Forum Search are some of your best tools!!!! |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|