[interfacekit] A problem.

Hello Guys!

I have a problem that is driving me nuts! aAaaaaAAAh! :-)

In BeIDE, when I RUN the project I get:
==================================
Error   : /boot/home/Devel/Test_BV/(Objects.Skeleton)/clsMainWindow.o: In
function `clsMainWindow::MessageReceived(BMessage *)':
/boot/home/Devel/Test_BV/(Objects.Skeleton)/clsMainWindow.o(.text+0x2f2):
undefined reference to `BFont::GetFamilyAndStyle(char (*)[63], char (*)[63])
const'

Error   : collect2: ld returned 1 exit status
==================================


here is the code:
=====================================
void clsMainWindow::MessageReceived(BMessage * Message)
{
 switch(Message->what)
 {
  case B_MY_MSG:{
    BView  *aView;
    BMessage msg;

    aView    = ChildAt(0);

    BFont    font;
    aView->GetFont( &font );
    font_family fam;
    font_style st;
    font.GetFamilyAndStyle( &fam, &st );
    printf("Font = %s . %s\n", fam, st);

    aView->Archive( &msg );
    msg.PrintToStream();

    msg.MakeEmpty();

    strcpy( fam, "Tahoma" );
    strcpy( st, "Bold" );

    printf("Font2 = %s . %s\n", fam, st);

    font.SetFamilyAndStyle( fam, st );

    aView->Archive( &msg );
    msg.PrintToStream();

    }
   break;
  default:
    BWindow::MessageReceived(Message);
    break;
 }
}
======================================


Why the linking process fails???


PS: The same happens when compiling MANY other OBOS sources!!!

PLEASE, HEEEEEEEELP!


Thanks, Adi.



Other related posts: