Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   That darned clib.lib (http://www.chiefdelphi.com/forums/showthread.php?t=61614)

ebowla 13-01-2008 20:42

That darned clib.lib
 
After poring over numerous errors... NOT EVEN CODE ERRORS! I'm using default 2007 code trying to get it to compile, but I had a large number of problems. After fixing many of them, I have narrowed it down to 1. I get the stupid error that MPLAB couldnt find clib.lib. I have MPLAB 7.20 and C18 2.40. I did a search on my entire computer for all *.lib files. Only 12 hits thankfully, but I did not have the clib.lib anywhere.

Could someone direct me to where I can get this clib.lib? where to put it? Or anything that might fix my problem that I wasn't thinking of.

Thanks.

Richard McClellan 13-01-2008 21:27

Re: That darned clib.lib
 
I had that same problem about a month ago. It has to do with MPLab not recognizing the compiler. I was getting the message because I installed MPLab after the C18 compiler, and you really need to do it in the other order.

There might be a way to fix it by changing something in your build options or something, but I don't know what exactly, so I uninstalled the C18 compiler, and reinstall it, and it worked.

baop858 13-01-2008 21:31

Re: That darned clib.lib
 
By default it's C:\mcc18\lib if it isn't there, I would suggest reinstalling the c18 complier.

jtdowney 13-01-2008 22:04

Re: That darned clib.lib
 
You usually get this error if your MPLAP project doesn't have the right library path set.

comphappy 13-01-2008 22:11

Re: That darned clib.lib
 
Quote:

Originally Posted by baop858 (Post 677285)
By default it's C:\mcc18\lib if it isn't there, I would suggest reinstalling the c18 complier.

You need to go to the project menu then build options then project
On the directory tab select Library Search Path, create a new one that points to the mcc18\lib folder where ever that may be, it might be in C:\Program Files\ or just under C:\

ebowla 14-01-2008 18:31

Re: That darned clib.lib
 
I uninstalled it and reinstalled it and finally I have clib.lib. I checked before I uninstalled and I DID NOT have a lib folder in my mcc18 folder which was under C:\Program files\Microchip\mcc18\....and then nothing useful.

I dont know how it happened but fixed now.

John Hooper 17-01-2008 11:30

Re: That darned clib.lib
 
Quote:

Originally Posted by comphappy (Post 677310)
You need to go to the project menu then build options then project
On the directory tab select Library Search Path, create a new one that points to the mcc18\lib folder where ever that may be, it might be in C:\Program Files\ or just under C:\

You, my friend, have just saved me an enormous amount of time and aggravation! Works perfectly now. Thanks.

rpgcubed 20-01-2008 20:07

Re: That darned clib.lib
 
Thank you so much! I wasted three hours working on this.


All times are GMT -5. The time now is 23:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi