PcConfigOpen function

Hello world !

Is there somebody who could tell me how to use PxConfigxxxx functions
(PxConfigOpen for example) in a NTO application (Not developped with Phab
and without photon). I have a problem with the linker
could you sen me an example of makefile

thanks !



remarks : I don’t understand why these functions are includes in photon
library. I think that they can be use in a console application to set
specific application parameters (without photon of course ! )

Serge PAYRE <spayre@free.fr> wrote:
: Hello world !

: Is there somebody who could tell me how to use PxConfigxxxx functions
: (PxConfigOpen for example) in a NTO application (Not developped with Phab
: and without photon). I have a problem with the linker
: could you sen me an example of makefile

The Px* functions aren’t in the general Photon library. Make sure you’re
also linking with the phexlib library as well.


: remarks : I don’t understand why these functions are includes in photon
: library. I think that they can be use in a console application to set
: specific application parameters (without photon of course ! )

\

Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Serge PAYRE <spayre@free.fr> wrote:

Hello world !

Is there somebody who could tell me how to use PxConfigxxxx functions
(PxConfigOpen for example) in a NTO application (Not developped with Phab
and without photon). I have a problem with the linker
could you sen me an example of makefile

Make sure you include <photon/PxProto.h> in your source code.
When compiling, use -lphexlib in your link line.

remarks : I don’t understand why these functions are includes in photon
library. I think that they can be use in a console application to set
specific application parameters (without photon of course ! )

You’re right. Of course there’s nothing stopping you from linking
a non-photon app against the exlib because it’s static and the config
section of the exlib doesn’t actually rely on anything relating to photon.