PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

how do I build the BLIT sample on it's own

Sorry to be a pest... but...

I have no real trouble getting the project in the make folder to compile & link ( it contains BLIT & PocketFrog ) but if I open the sample project on it's own ( using .5.1 download ) I get lots of linker errors ( 27 of them ). I assume it can't find the frog .LIB even though the project options point to the .5.1 folder? I had similar problems with .5.0.

What am I missing here? what are the pre-requisites for building the blit sample. sample error follows

blit.obj : error LNK2019: unresolved external symbol "public: bool __cdecl Frog::Game::Run(void)" (?Run@Game@Frog@@QAA_NXZ) referenced in function WinMain
blit.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Frog::Game::SplashScreen(void)" (?SplashScreen@Game@Frog@@MAAXXZ)
When you open the .dsw provided in the archive, there is two projects (PocketFrog and Blit). If you look at the Blit project, it is set as being dependant on the PocketFrog one. That's why it's working.

If you open Blit.dsp on it's own, the dependancy is broken and it can't find PocketFrog. That's why you are having these unresolved symvols.

I am currently working on something that should solve this kind of problem. For now, the easiest way to work is to have 2 projects in your workspace: your own and PocketFrog. Then flag your project as dependent on PocketFrog. This is done my selecting menu Projects->Dependencies...
Conan · 04 Jun 2002, 18:45 UTC — BLIT sample
Thanks, now I know that the stand alone one should be left alone for now.

That was fun. with my wife watching Ally McBeal I had a good poke around & played with adding bits & bobs to blit. I will play for a few days before coming back with questions on the hard bits