Jump to content

nikosxan

EstablishedMember
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About nikosxan

  • Rank
    Newbrie
  1. OK, it works fine now ! THANKS for all the help....... Now i can go on with the actuall project..... PS : Hope you fix the problem in newer version..... BYE! Nick
  2. Hello again. I did some more work and think it's a linker bug... I changed the targer from f870 (this is my actual H/W) to f628 and of course took out some portc related statements (since for 628 only porta, portb)...SUCCESS... Exactly the same code when the target back to 870 ERROR during link........ All changes ONLY to main program.... In my opinion this is some kind of linker bug........(or compiler bug)
  3. Hi again.... I consider it to be a bug (i think in the linker...)... I did the following : Changed the target from f870 (this is my H/W) to f628A...(using it for another project......).... Of course i took out a couple of statements related to portc which 628 doesn;t have... SUCCESS !!!!!!!!!!!!!! Exactly the same when target back to 870 Linker ERROR with eeadr, etc... So, is it a bug or not ????
  4. Sounds like you are multiply including your library header file that contains declarations for some global variables. Its best to take these out of the header and put them in one of the library source files. Declare them as extern (if necessary) in the header file to allow compilation. Hi Dave This was actually your lcd4lib.... I got the main{} out of the file an put it in another file.... Lib has ONLY #include <system.h> #include "lcd4bit.h" header file has : void LCD_Setup(void); void LCD_FunctionMode(void); void LCD_DataMode(void); void LCD_RawWriteNibble(char); void LCD_Write(char); void LCD_RawWrite(char); char LCD_Read(); void lprintf( const char *lcdptr ); //write string void LCD_Clear(); void LCD_WaitForNotBusy(); //////////////////////////////////////////////////////////////////////////// // Control signal bit definitions //////////////////////////////////////////////////////////////////////////// #define LCD_E 3 #define LCD_RW 2 etc..................... also, my main program has #include <system.h> #include "lcd4bit.h" once again, i dont; use any of the eeadr, aadata, etc vars.......... Nick
  5. I followed the above for having a library file into my project (BoostC, 16f870).. The lib was some LCD routines that worked OK when in main file...However, it compiler OK but linker reports 4 errors for duplicate Global vars, eedata, eeaddr, eecon1, eecon2......... My main program doesn't use (at present time) ANY of these....
×
×
  • Create New...