PtWebClient

Hello,

If i try to compile an application in the PhAB, which has a PtWebClient
widget, i get the following error message:

for i in gcc_ntox86 ; do (cd $i; make shr) ; done
make[1]: Entering directory /root/proba/src/gcc_ntox86' qcc -Vgcc_ntox86 -w5 -Wc,-O3 -fomit-frame-pointer -Wl,-O3 -fomit-frame-pointer -I. -c ../abmain.c -o abmain.o .../abmain.c:70: PtWebClient’ undeclared here (not in a function)
…/abmain.c:70: initializer element is not constant
…/abmain.c:70: (near initialization for ClassTable[1].wclass') cc: error 33 make[1]: *** [abmain.o] Error 1 make[1]: Leaving directory /root/proba/src/gcc_ntox86’
make: *** [shr] Error 2

It’s only a PtWebClient in a window, nothing else.
What do i wrong ?
Thanks,
Ferenc

Hello Ferenc

Check out this knowledge base entry and see if it clears up your problem.

http://support.qnx.com/support/bok/solution.qnx?7408

Thanks
Rodney

Previously, Ferenc S rk zy wrote in qdn.public.qnxrtp.photon:

Hello,

If i try to compile an application in the PhAB, which has a PtWebClient
widget, i get the following error message:

for i in gcc_ntox86 ; do (cd $i; make shr) ; done
make[1]: Entering directory /root/proba/src/gcc_ntox86' qcc -Vgcc_ntox86 -w5 -Wc,-O3 -fomit-frame-pointer -Wl,-O3 -fomit-frame-pointer -I. -c ../abmain.c -o abmain.o ../abmain.c:70: PtWebClient’ undeclared here (not in a function)
…/abmain.c:70: initializer element is not constant
…/abmain.c:70: (near initialization for ClassTable[1].wclass') cc: error 33 make[1]: *** [abmain.o] Error 1 make[1]: Leaving directory /root/proba/src/gcc_ntox86’
make: *** [shr] Error 2

It’s only a PtWebClient in a window, nothing else.
What do i wrong ?
Thanks,
Ferenc

Hello,

Thank you for your help, I tried it, and it worked after i had added
the libPtWeb.a library to link. What is the “standard” way to do this
(add a library) ?
I should edit the make file (as i did), or is there a more elegant method ?

Thanx again,
Ferenc

Ferenc Sárközy <sarkozyf@freemail.hu> wrote:

Thank you for your help, I tried it, and it worked after i had added
the libPtWeb.a library to link. What is the “standard” way to do this
(add a library) ?
I should edit the make file (as i did), or is there a more elegant method ?

Actually, PhAB should do this for you, provided that you’re running
Patch B. If you re-generate, PhAB should put the appropriate #include
in ablibs.h, and the linker option to abLfiles.

Doesn’t it? Are you running Patch B?


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

How can I decide whether I’m running patch B or not ?
I have installed the RTP from the second release of the CD image.

Thanks
Ferenc

Use the package manager, go to View My Software and look what’s installed.
Markus


“Ferenc Sárközy” <sarkozyf@freemail.hu> wrote in message
news:3AC46CFC.80807@freemail.hu

How can I decide whether I’m running patch B or not ?
I have installed the RTP from the second release of the CD image.

Thanks
Ferenc

I’m new to programing. I know this is a little out of date, but can you
explain what you do to add “libPtWeb.a library to link”. I’m not using patch
B, and need to stay that way.

Thanks

Ben

“Ferenc Sárközy” <sarkozyf@freemail.hu> wrote in message
news:3AC02CD1.7010405@freemail.hu

Hello,

Thank you for your help, I tried it, and it worked after i had added
the libPtWeb.a library to link. What is the “standard” way to do this
(add a library) ?
I should edit the make file (as i did), or is there a more elegant method
?

Thanx again,
Ferenc

Ben Brown <ben@handcoder.com> wrote:
: I’m new to programing. I know this is a little out of date, but can you
: explain what you do to add “libPtWeb.a library to link”. I’m not using patch
: B, and need to stay that way.

Let me “empower” you. :slight_smile:

Go to the Keyword Index in the Photon Programmer’s Guide. Look up
“libraries, adding.” It points to the section that will help you.


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