PxLoadImage

I’m using this to load a bitmap from a file. However the compiler gives
me and undefined reference to PxLoadImage error. I tried including
photon/PxImage.h, that didn’t make a difference. Its a pretty basic
call of PxLoadImage(filename, NULL);

Any help would be appreciated!
Thank you
Sara

looks like you forgot to add phexlib when you were compiling.

“Sara Mallory” <pushkin@cogeco.ca> wrote in message
news:4038C6F2.7080308@cogeco.ca

I’m using this to load a bitmap from a file. However the compiler gives
me and undefined reference to PxLoadImage error. I tried including
photon/PxImage.h, that didn’t make a difference. Its a pretty basic
call of PxLoadImage(filename, NULL);

Any help would be appreciated!
Thank you
Sara

I’m using the eclipse compiler, how do I add phexlib?

Sara

“Joe Bishop” <joe@qnx.com> wrote in message news:c1d8kf$pqh$1@inn.qnx.com

looks like you forgot to add phexlib when you were compiling.

“Sara Mallory” <> pushkin@cogeco.ca> > wrote in message
news:> 4038C6F2.7080308@cogeco.ca> …
I’m using this to load a bitmap from a file. However the compiler gives
me and undefined reference to PxLoadImage error. I tried including
photon/PxImage.h, that didn’t make a difference. Its a pretty basic
call of PxLoadImage(filename, NULL);

Any help would be appreciated!
Thank you
Sara

select properties on your project, select the “Linker” tab, change the
Category pull-down to “Extra libs”, press the Add button, in the name field
enter “phexlib”, press apply, and rebuild… should be good to go.

“Sara Mallory” <flamingwitch@hotmail.com> wrote in message
news:c1djvt$5ii$1@inn.qnx.com

I’m using the eclipse compiler, how do I add phexlib?

Sara

“Joe Bishop” <> joe@qnx.com> > wrote in message
news:c1d8kf$pqh$> 1@inn.qnx.com> …
looks like you forgot to add phexlib when you were compiling.

“Sara Mallory” <> pushkin@cogeco.ca> > wrote in message
news:> 4038C6F2.7080308@cogeco.ca> …
I’m using this to load a bitmap from a file. However the compiler
gives
me and undefined reference to PxLoadImage error. I tried including
photon/PxImage.h, that didn’t make a difference. Its a pretty basic
call of PxLoadImage(filename, NULL);

Any help would be appreciated!
Thank you
Sara

\