Jump to content


Photo

Specifying The Path To Header Files


4 replies to this topic

#1 MVincent

MVincent

    Newbrie

  • EstablishedMember
  • 5 posts

Posted 08 January 2013 - 03:11 PM

Hi,

I'm new to boostc and the boost ide.

In the project I'm working on I have


#include <system.h>
#include <stdio.h>
#include <eeprom.h>
#include <BoostCPic16.h>
#include <boostc.h>

and the code calls eeprom_read & eeprom_write.

I get errors saying "Unresolved external function: eeprom_read(unsigned char)"

I have a pro licence and goodies licence.

How do I tell the IDE where to look for the library files?

I'm on win7.

Thanks for your help,

Mike

#2 Dave

Dave

    Super Maniac

  • Administrators
  • PipPipPipPipPip
  • 2,091 posts
  • Gender:Male
  • Location:UK
  • Interests:How things work, Electronics, Software, Cycling.

Posted 08 January 2013 - 09:10 PM

Mike

How do I tell the IDE where to look for the library files?

Add the library files to the project tree.

Regards
Dave

#3 MVincent

MVincent

    Newbrie

  • EstablishedMember
  • 5 posts

Posted 09 January 2013 - 10:18 AM

Thank you. I have tried that, but it seems to make no difference.

Should it look different to this:

Posted Image

Regards,

Mike

#4 Dave

Dave

    Super Maniac

  • Administrators
  • PipPipPipPipPip
  • 2,091 posts
  • Gender:Male
  • Location:UK
  • Interests:How things work, Electronics, Software, Cycling.

Posted 09 January 2013 - 08:45 PM

Mike,

Thank you. I have tried that, but it seems to make no difference.

Should it look different to this:

Posted Image

You need to add the eeprom.pic16.lib or eeprom.pic18.lib file to the project tree.
Regards
Dave

#5 MVincent

MVincent

    Newbrie

  • EstablishedMember
  • 5 posts

Posted 10 January 2013 - 11:41 AM

... and remove the entry to eeprom.c I have in there already.

That seems to have worked.

Thank you.

Mike



Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users