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
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
 

aanand_44

Junior Member level 2
Junior Member level 2
Joined
Jul 25, 2007
Messages
24
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,283
Location
India
Activity points
1,407
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
 

seyyah

Advanced Member level 2
Advanced Member level 2
Joined
Oct 7, 2001
Messages
646
Helped
8
Reputation
16
Reaction score
8
Trophy points
1,298
Activity points
6,233
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

cameo_2007

Advanced Member level 3
Advanced Member level 3
Joined
Mar 15, 2007
Messages
748
Helped
70
Reputation
142
Reaction score
44
Trophy points
1,308
Location
12°58' N77°38'E
Activity points
5,023
c18 toolsuite

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

just kidding
-cheers
 

Dabliuca

Newbie level 1
Newbie level 1
Joined
Feb 27, 2006
Messages
1
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,286
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

movie_freak

Member level 5
Member level 5
Joined
Mar 20, 2007
Messages
89
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Activity points
1,943
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!!
 

Slorn

Junior Member level 2
Junior Member level 2
Joined
Oct 20, 2009
Messages
22
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Location
Belgium
Activity points
1,412
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top