| Author |
Message |
karan123
Joined: 02 Feb 2009 Posts: 29
|
11 Mar 2009 21:39 error - could not find file c018i.o. |
|
|
|
|
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
|
|
| Back to top |
|
 |
Google AdSense

|
11 Mar 2009 21:39 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
aanand_44
Joined: 25 Jul 2007 Posts: 24 Helped: 2 Location: India
|
12 Mar 2009 4:44 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
|
|
| Back to top |
|
 |
seyyah
Joined: 07 Oct 2001 Posts: 578 Helped: 1
|
12 Mar 2009 8:52 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.
|
|
| Back to top |
|
 |
cameo_2007
Joined: 15 Mar 2007 Posts: 439 Helped: 17 Location: 13.04°N80.17°E
|
12 Mar 2009 9:09 c18 toolsuite |
|
|
|
|
karan123,
by the way what where you watching in VLC media player at 1.48 AM !@#??
just kidding
-cheers
|
|
| Back to top |
|
 |
gurpreet312
Joined: 05 Feb 2008 Posts: 44
|
13 Mar 2009 9:49 c018i.o |
|
|
|
|
| Thanks A lot for Reply... To ALL.
|
|
| Back to top |
|
 |
Dabliuca
Joined: 27 Feb 2006 Posts: 1
|
13 Mar 2009 11:55 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.
|
|
| Back to top |
|
 |
movie_freak
Joined: 20 Mar 2007 Posts: 81 Helped: 2
|
07 Nov 2009 10:27 Re: MPLAB C 18 Complier |
|
|
|
|
| Quote: |
| hen I tried Seeyah's hint: Projects-> Build Options -> Project, tab "Directories". Now it works. |
I've done the same it works.. Thanks..... Cheers!!
|
|
| Back to top |
|
 |
Slorn
Joined: 20 Oct 2009 Posts: 14 Location: Belgium
|
07 Nov 2009 13:27 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
http://www.dwengo.org/tutorials/blinking-leds
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
|
|
| Back to top |
|
 |