From: Nik Rim on

"Nik Rim" <NR(a)BLABBA.COM> wrote in message
news:4aa5d88c$0$27628$5a62ac22(a)per-qv1-newsreader-01.iinet.net.au...
>
> "Nobody" <nobody(a)nowhere.com> wrote in message
> news:pan.2009.09.05.00.28.39.719000(a)nowhere.com...
>> On Fri, 04 Sep 2009 15:55:19 +0800, Nik Rim wrote:
>>
>>> Trying to learn some C with PICs and I've fallen over before I've even
>>> started.
>>>
>>> I'm running MPLAB with PICC18 (lite student version). When I try to
>>> compile
>>> I get an error:
>>>
>>> "Error - could not find definition of symbol 'TRISD' in file './01 Hello
>>> LED.o'.
>>> Errors : 1
>>> Link step failed."
>>>
>>>
>>>
>>> In the project I have "p18f45k20.h" included under header files, TRISD
>>> is
>>> defined in this file
>>
>> I suspect that TRISD will only be *declared* in that file, not defined
>> there.
>>
>> For Microchip's MCC18, the definitions are in p18f45k20.lib. This is
>> normally linked in by an entry in the linker script (.lkr), e.g.:
>>
>> FILES p18f45k20.lib
>>
>> If you aren't using a linker script, you'll need to add the library to
>> the project.
>>
>
>
> Thanks - just tried making that change & unfortunately it didn't work.
>
> I've changed the lib path directory as suggested by don. Didn't fix it but
> now having played with all the paths, it progresses further and spits out
> a syntx error from the first line in the .inc file. Its reporting the ";"
> which makes sense as I assume it should be "//" for C. Surely I must be
> doing something fundamental wrong here! It's a pain being a noob!
>
>
>

Problems fixed!

Reinstalled MPLAB-C18-Lite-v3_33.exe and after checking / setting toolpaths
it progs would compile ok. Had a few probs then realised I had to have
clib.lib as one of the libraries.
Thanks for the replies/help - no doubt I'll be back soon asking for
more.....