View Single Post
  #1   Spotlight this post!  
Unread 13-01-2006, 01:55
lasindi lasindi is offline
Registered User
FRC #1164 (Project Neo)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: New Mexico
Posts: 11
lasindi is an unknown quantity at this point
In Linux, compiler can't find standard headers

I've been trying to get the default code to compile under Linux, but I've run into some trouble. So far, I've mostly been following the advice in this thread. I installed the C18 compiler under WINE, and that appears to have worked. I can't yet use a makefile because I can't get individual files to compile. For example, I tried to get main.c to compile with this command:
Code:
mcc18 main.c -fo=main.o
But I get the following error:
Code:
Microchip MCC C18 Compiler
        Version 0.0+SVN20050725
DEBUG:Using wine /opt/mcc18/bin/mcc18-traditional main.c -fo=main.o  to launch MCC18
fixme:msvcrt:_spawnve :not translating name Z:\opt\mcc18\bin\cpp18 to locate program
C:\first\default_code\ifi_aliases.h:18:Error [1027] unable to locate 'adc.h'
C:\first\default_code\ifi_default.h:13:Error [1027] unable to locate 'p18cxxx.h'
It looks like it can't find the headers in the standard include directory (/opt/mcc18/h). Is there a parameter I need to pass to mcc18 or some modification to the mcc18 script that I need to make in order for this to work?