Definition not found for the symbol

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
OlivierPierre04
Posts: 17
Joined: Fri Jan 07, 2022 2:56 pm

Definition not found for the symbol

Post by OlivierPierre04 »

So i create the module
i would like have an Object

Can i use this
CRTSRVPGM
if yes

i compile with this command Create a service pgm
but issue with the compilation

i have inside this information

/Include QRPGLESRC,HTTPAPI_H --> inside lot a procedures prototypes like http_url_get ... etc

in my pgm with no main i used these procedures but the compilator does not recognize these procedures

need Help please

XSRVMSERVT RPGLE --> /Include QRPGLESRC,HTTPAPI_H
|
--> // Call microservice
Rc = Http_url_get(In_Url:Filename);

CRTSRVPGM SRVPGM(GESCOMOBJ/XSRVMSERVT) MODULE(GESCOMOBJ/XSRVMSERVT) SRCFILE(LOGCDESRC/QRPGLESRC)

Definition not found for the symbol 'HTTP_COMP'.
Definition not found for the symbol 'HTTP_ERROR'.
Definition not found for the symbol 'HTTP_SETCCSIDS'.
Definition not found for the symbol 'HTTP_TEMPFILE'.
Definition not found for the symbol 'HTTP_URL_GET'.
Definition not found for the symbol 'HTTP_URL_POST'.
Definition not found for the symbol 'HTTP_XPROC'.
Top
User avatar
tools400
Posts: 5
Joined: Thu Jul 29, 2021 4:56 am

Re: Definition not found for the symbol

Post by tools400 »

Did you specify the binding directory at the CRTSRVPGM command like this:

BNDDIR(LIBHTTP/HTTPAPI)

Thomas.
OlivierPierre04
Posts: 17
Joined: Fri Jan 07, 2022 2:56 pm

Re: Definition not found for the symbol

Post by OlivierPierre04 »

tks
Post Reply