Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MPLAB C 18 Complier error: could not find file c018i.o

Status
Not open for further replies.

karan123

Member level 3
Joined
Feb 2, 2009
Messages
55
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,710
Hello,

I have using MPLAB IDE with MPLAB C18 Complier
I have received Error on Bulid.“could not find file ‘c018i.o’”

i have read from "MPLAB C18 Complier Manual"

EM-2 Linker error: “could not find file ‘c018i.o’”
Enter the proper directory path in Project>Build Options…>Project General tab. Set
the Library Path box to “C:\mcc18\lib”. c018i.o is the start-up library for MPLAB
C18. It sets up the stack, initializes variables, then jumps to main() in the application.


But I have not seen General tab in that section.
Can anyone tell how to give proper directory path ?
--
Thankyou in advance
Karan
 

error - could not find file c018i.o

hi,

in your MPLAB IDE menu bar

select Project->Select Language Toolsuite

in that there is one cobo box with name Active Toolsiute
Choose Microchip C18 Toolsiute.

In tool suite Contents Box

1. MPASM Assembler(mpasmwin.exe)
then select correct file location
for exmaple:
C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe
2. Select MPLINK Object Linker(mplink.exe) then select correct file location
for example:
C:\MCC18\bin\mplink.exe
3.select MPLAB C18C Compiler(mcc18.exe)
for example:
C:\MCC18\bin\mcc18.exe
4.select MPLIB Librarian(mplilb.exe)
for example:
C:\MCC18\bin\mplib.exe

then it will work.

see the image


Regards,
Anand.A
 

microchip c18 toolsuite

Hi, you should set the paths correctly. You can set default paths or paths specific to project. Default paths are under project -> set language tool locations -> microchip c18 toolsuite -> default search paths & directories.


output directory : if you left blank output files are saved in the projects folder
intermediates directory : ....\Microchip\mcc18
include search path: .....\Microchip\mcc18\h
library search path:......\Microchip\mcc18\lib
linker-script search path: ......\Microchip\mcc18\lkr


the settings above will remove the error i think. You can use project->build options -> project-> directories tab to set the paths available only for the current project. Good luck.
 
  • Like
Reactions: parinda

    parinda

    Points: 2
    Helpful Answer Positive Rating
c18 toolsuite

karan123,
by the way what where you watching in VLC media player at 1.48 AM !@#??

just kidding
-cheers
 

could not find file c018i.o

Folks,

I set the options in the "Select Language Toolsuite" and the "Set Language Tool Location" and suprise!.. it didn't work! That was after all options were filled up correctly. Bad luck.

Then I tried Seeyah's hint: Projects-> Build Options -> Project, tab "Directories". Now it works.

Many thanks.
 
  • Like
Reactions: parinda

    parinda

    Points: 2
    Helpful Answer Positive Rating
Re: MPLAB C 18 Complier

hen I tried Seeyah's hint: Projects-> Build Options -> Project, tab "Directories". Now it works.


I've done the same it works.. Thanks..... Cheers!!
 

Re: MPLAB C 18 Complier

Hi guys

Here is a tutorial that explains:
* How to install MPLAB and the C18 compiler
* Create your first project
* And compile it

**broken link removed**

Its great if you're new to MPLAB and the C18 compiler. It gives solutions for difficulties (including the one described above) you can run in to when using the compiler for the first time.

Slorn
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top