PocketMatrix forums

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

Problem: setting up VS2005 to use PHAL library

I've made the following settings in VS2005 and it still doesn't find the PocketHAL.h

Image
I just converted the PF project, fixed a few compile errors & built the lib. No setups required.
I have the following settings in my PocketFrog project:
In project properties, C++, general I just have .. as the additional include directories.
PocketFrog's .h files reference HAL via some
#include <PocketHAL/PocketHAL.h> but these are all standard.
I don't recognise the properties page you have open on the right? where is that?
I just converted the PF project, fixed a few compile errors & built the lib. No setups required.
I have the following settings in my PocketFrog project:
In project properties, C++, general I just have .. as the additional include directories.
PocketFrog's .h files reference HAL via some
#include <PocketHAL/PocketHAL.h> but these are all standard.
I don't recognise the properties page you have open on the right? where is that?

the include above is correct for where I have things but see comment below re. 77
abiemann wrote:I've made the following settings in VS2005 and it still doesn't find the PocketHAL.h


Your include path for PocketHAL is wrong. It should end with "PocketHAL077", not "PocketHAL".
Conan wrote:I don't recognise the properties page you have open on the right? where is that?


Tools -> options -> projects & solutions
Kzinti":3guhvmg4]

But PocketHAL077 contains PocketHAL which contains the .h
abiemann wrote:But PocketHAL077 contains PocketHAL which contains the .h


That's right and that's why it fails for you. The statement is:

Code:

#include <PocketHAL/PocketHAL.h>


With you current settings, it tries to open:

Code:

#include "../PocketHAL077/PocketHAL/PocketHAL/PocketHAL.h"


That of course isn't right and it fails.
ah yeah!!

I removed "PocketHAL" from the library include path and it compiled :) :)

thanks a lot for helping me correct that silly mistake