Author Topic: Compile error in FBA  (Read 5577 times)

Offline hxghwx

  • Newbies
  • *
  • Posts: 37
  • Karma: +0/-0
Compile error in FBA
« on: February 18, 2013, 06:06:07 AM »
The old version of the FBA compiler to add color palette function, the running game wrong, who can do me a favor?


Offline CaptainCPS

  • FBNeo Dev
  • ******
  • Posts: 1513
  • Karma: +127/-0
  • FB Alpha Team
    • CaptainCPS's Home
Re: Compile error in FBA
« Reply #1 on: February 18, 2013, 01:59:12 PM »
The old version of the FBA compiler to add color palette function, the running game wrong, who can do me a favor?

Can you provide more details please? In your post you are not specifying many things, what system you have, compiler you're using, fba source version, what game is giving problems (if any)...any detail you can give is vital to be able to help you.

SeeYa!
 :biggrin:

Offline hxghwx

  • Newbies
  • *
  • Posts: 37
  • Karma: +0/-0
Re: Compile error in FBA
« Reply #2 on: February 19, 2013, 05:46:07 AM »
=========================================burnint.h================================

Add UINT32 nPaletteEntries;

=========================================burn.h===========================

Add int BurnDrvGetPaletteEntries ( );

==========================================burn.cpp========================

Add extern " C " BurnDrvGetPaletteEntries ( int )

{

Return pDriver[nBurnDrvSelect]->nPaletteEntries;

}

==========================================================================

Mainly to solve the game had " BurnDrvGetPaletteEntries " cannot find symbol, as long as these items compiled a running game can make mistakes.

I used FBA-029686 to try, too.

Offline doomking

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +21/-0
Re: Compile error in FBA
« Reply #3 on: February 19, 2013, 06:42:55 AM »
extern "C" BurnDrvGetPaletteEntries(int)
{
   return pDriver[nBurnDrvSelect]->nPaletteEntries;
}

改為:

extern "C" int BurnDrvGetPaletteEntries()
{
   return pDriver[nBurnDrvSelect]->nPaletteEntries;
}

Offline hxghwx

  • Newbies
  • *
  • Posts: 37
  • Karma: +0/-0
Re: Compile error in FBA
« Reply #4 on: February 19, 2013, 08:19:39 AM »
The next test, or the same. Still thank you!

Offline hxghwx

  • Newbies
  • *
  • Posts: 37
  • Karma: +0/-0
Re: Compile error in FBA
« Reply #5 on: February 20, 2013, 04:11:33 AM »
Who can help me solve this problem? First, thank you pull