Pumpkin, Inc.

Pumpkin User Forums

MPLAB C18 Link Error

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

MPLAB C18 Link Error

Postby Tilco » Thu Oct 03, 2002 4:11 am

I am evaluating the freeware version of the RTOS and am having a problem linking the sample code. I have followed the setup instruction in app note 12 for the MPLAB C18 compiler but I get the following error 'could not find definition of symbol '__OSDelay:1' in file './MAIN.O'' when I build the project. The directory TEMP88 contains MAIN.C, MAIN.H and SALVOCFG.H and the project file.

Building TEMP.HEX...

Compiling MAIN.C:
Command line: "C:mcc18inmcc18.exe -ms -Ol+ -Oa- -w2 -O+ -p=18F448 -dSYSE -isalvoinc C:TEMP88MAIN.C"

Linking:
Command line: "C:mcc18inmplink.exe /m temp.map /o TEMP.HEX /l MCC18LIB /k MCC18LKR MAIN.O C:MCC18LKR18F448.LKR C:SALVOLIBSFC18SFA.LIB "
MPLINK 3.00, Linker
Copyright (c) 2002 Microchip Technology Inc.
Error - could not find definition of symbol '__OSDelay:1' in file './MAIN.O'.
Errors : 1


MPLAB is unable to find output file "TEMP.HEX". This may be due to a compile, assemble, or link process failure.

Build failed.

Tilco
 
Posts: 2
Joined: Wed Oct 02, 2002 11:00 pm
Location: Toronto, Ontario, Canada

Re: MPLAB C18 Link Error

Postby Tilco » Fri Oct 04, 2002 5:03 am

The problem is resolved by disabling static locals in the project properties for main.c
Tilco
 
Posts: 2
Joined: Wed Oct 02, 2002 11:00 pm
Location: Toronto, Ontario, Canada

Re: MPLAB C18 Link Error

Postby aek » Fri Oct 04, 2002 7:30 am

Hmmm ... static locals applies to external functions?

I would have thought it applies to variables, not functions ... odd.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 2 guests

cron