Skipping link step. The project contains no linker script.

Questions and Comments on All Tutorials

Kevin
Newbie Pyro
Posts: 17
Joined: Fri Nov 23, 2007 9:06 pm

Skipping link step. The project contains no linker script.

Postby Kevin » Wed Mar 19, 2008 8:39 am

I get this error in MPLAB when I'm trying to build the project.

Code: Select all

Executing: "D:\MCC18\bin\mcc18.exe" -p=18F452 "main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.16 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited:  60
Skipping link step.  The project contains no linker script.
BUILD FAILED: Wed Mar 19 01:38:17 2008

Any ideas how to fix this? :roll:

ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Postby ThePyroElectro » Wed Mar 19, 2008 7:59 pm

Hey Kevin,

It sounds like you've forgotten to include a linker file. :shock:

:arrow: Make sure your project setup has both the .c and .lkr files in it.

Image

In this picture notice the 18f448.lkr is in the Linker Scripts part of the project.

Double check this and let me know if it fixes your problem. :wink:

Kevin
Newbie Pyro
Posts: 17
Joined: Fri Nov 23, 2007 9:06 pm

Postby Kevin » Wed Mar 19, 2008 8:16 pm

I include the linker file and now I encounter another error:

Code: Select all

Make: The target "C:\test\pic\main.o" is out of date.
Executing: "D:\MCC18\bin\mcc18.exe" -p=18F452 "main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.16 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited:  60
Make: The target "C:\test\pic\pic.cof" is out of date.
Executing: "D:\MCC18\bin\mplink.exe" /l"D:\MCC18\lib" "D:\MCC18\lkr\18c452.lkr" "C:\test\pic\main.o" /o"pic.cof" /M"pic.map" /W
MPLINK 4.16, Linker
Copyright (c) 2008 Microchip Technology Inc.
Error - processor types do not agree across all input files.
Errors    : 1

Link step failed.
BUILD FAILED: Wed Mar 19 13:13:07 2008

Image

Btw, is there a way to include linker file automatically instead of doing manually?

Thanks for helping.

ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Postby ThePyroElectro » Wed Mar 19, 2008 8:35 pm

No there isn't an automatic way.

You included 18C452.lkr...change it to 18F452.lkr :o

Kevin
Newbie Pyro
Posts: 17
Joined: Fri Nov 23, 2007 9:06 pm

Postby Kevin » Wed Mar 19, 2008 8:57 pm

Doh, it works now thanks :D


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 4 guests