PocketMatrix forums

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

Can't compile PocketFrog with EVC 4

I installed Embedded Visual C++ 4 (and SP4) as well as the PocketPC 2003 SDK. I then go into the PocketFrog make directory and click PocketFrog.vcw (which fires up EVC4). Pressing F7 to compile, I get a bunch of these errors:

C:\develop\PocketFrog\PocketHAL\symbian\symbian_defs.h(11): Could not find the file w32std.h.

and one of these

c:\develop\pocketfrog\source\rasterizer.cpp(208) : error C2065: 'sqrtf' : undeclared identifier

What am I doing wrong?

Thanks,

::MikiNanuk
This is at the top of almost all pages:
Welcome to the PocketMatrix.com forums. Please remember to search before asking a new question.



By searching I found the answers to your very questions in right here:

1) http://www.pocketmatrix.com/forums/view ... c&start=23

Which is a non-issue.

And...

2) http://www.pocketmatrix.com/forums/view ... f&start=57

In the exact same thread, follow the post all the way through.


I don't mean to be rude, but please try to use the search button next time. It will save a lot of time for you and everyone else :-).
Ohayden, have you checked the links you give?
There is what Thierry says:

The log says you are missing "sqrtf". I am not exactly sure why doesn't find it for the EMU. I will take a look later.


So the problem remains(I have the same thing) and I'm still waiting for Thierry's answer :).
jaguard wrote:Ohayden, have you checked the links you give?

So the problem remains(I have the same thing) and I'm still waiting for Thierry's answer :).


Sure I did, I read them the first time and again when I was finding the info for the first poster who didn't bother even trying to search.

I never said that the second one had a "fix", did I? I said the first issue he listed was a non-issue and so this one doesn't remain. On the second issue, I said "...follow the post all the way through." I'm just advocating the often forgotten "Search" feature.
I am unable to reproduce the sqrtf() problem. I can recompile the samples with both EVC3 and EVC4, any target.

At the that top of "rasterizer.cpp", there is this code:

Code:

inline float cosf( float angle ) { return (float)cos( angle ); }
inline float sinf( float angle ) { return (float)sin( angle ); }
#if (_WIN32_WCE < 400)
inline float sqrtf( float angle ) { return (float)sqrt( angle ); }
#endif


The sqrtf() function is not declared if EVC is older then EVC4. MMm. I built the PF lib with EVC3, perhaps it is not compatible on EVC4.

Can you force a rebuild of PF lib? Simply delete the lib directory and rebuild with EVC4.
Thierry wrote:I am unable to reproduce the sqrtf() problem. I can recompile the samples with both EVC3 and EVC4, any target.

At the that top of "rasterizer.cpp", there is this code:

Code:

inline float cosf( float angle ) { return (float)cos( angle ); }
inline float sinf( float angle ) { return (float)sin( angle ); }
#if (_WIN32_WCE < 400)
inline float sqrtf( float angle ) { return (float)sqrt( angle ); }
#endif


The sqrtf() function is not declared if EVC is older then EVC4. MMm. I built the PF lib with EVC3, perhaps it is not compatible on EVC4.

Can you force a rebuild of PF lib? Simply delete the lib directory and rebuild with EVC4.


Alright, I've found a sollution. You posting drop me an idea, so what I did is removed #if declaration and made sqrtf always declared(don't know if there's any side effects).
It was THAT simple :-).

Yes, of course I recompiled libs, several times, and I had to make proper target as it was removed, but it never worked.

So, looks like sqrtf() is not declared in EVC4 either.
At least, in my EVC4 :).
Interesting... I think I added these #ifdefs because of the emulator (it has sqrtf). I guess I used the wrong test.

But it still works for me when targetting ARM, I don't get it... I will investigate some more.