PocketMatrix forums

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

Another silly question I guess...

Sorry but I'm trying since yesterday to just display ANYTHING with PF but everytime I'm compiling I have the error:
"error C2065: 'GetDisplay' : undeclared identifier"

I tried to compile PF separately, and it says,

"
LINK : fatal error LNK1104: cannot open file "stlport_vc6_static.lib" "

Does someone have an answer? two maybe?
Conan · 08 Apr 2003, 10:30 UTC — what code are you using?
Are you simply trying to use the existing FP demos or your own code?

Can you get anything to link without errors?
Draluy · 08 Apr 2003, 10:35 UTC — well..
In fact I'm using my own code, in wich one I put the following lines:

Surface *MySplashImage;

MySplashImage = Frog::LoadImage(GetDisplay(), _T("\\splashscreen.gif"));
GetDisplay()->Blit(0, 0, MySplashImage);
GetDisplay()->Update();
delete MySplashImage;

. If i don't use PF functions it compiles fine.
You need to properly set up the PF library first. Try to recompile the blit sample for example. If you can't do this, then you can take a look at www.omnytex.com/pf for a guide that helps you set things up.

Then you can start to worry about what you are doing wrong.

The "error C2065: 'GetDisplay' : undeclared identifier" is because the compiler doesn't know about any GetDisplay type (identifier). The GetDisplay() function is only visible inside a Game class (or any class that inherits from Game).

Take a look at the Blit sample for an example of how to use the Game class interface (and the GetDisplay() function).

If you are not familiar with the concept of clases, then I suggest you find yourself a C++ book/guide/tutorial and brush up on your knowledge.
Adde, my love for u has no limits.
Thanks a lot!