Skip to content | Skip to navigation
Powered by RSPowered by RSPowered by RS

Problem compiling "blink" sketch

kciszewski

United States

I got the Chipkit Max32 recognized by the PCs,but when I tried to run the "blink" sketch, I got the following compile time error:

 

In file included from c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin\../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stdlib.h:7:0,

from C:\Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\cores\pic32/WProgram.h:5,

from Blink.cpp:8:
c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin\../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stddef.h:75:26: fatal error: machine/ansi.h: No such file or directory
compilation terminated.
 It's as though something is wrong with the path, as the "machine/ansi.h" file exists. Any suggestions?

Replies

EmbeddedMan

United States

18 weeks ago

I agree - a path problem is likely the problem. Seems as though your paths are too long maybe? Try just copying the c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822

 

folder to

C:\mpide-0022-windows-20110822

and running it from there.

 

*Brian