Page 1 of 1

Definition not found for the symbol

Posted: Mon Jan 10, 2022 3:00 pm
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

Re: Definition not found for the symbol

Posted: Mon Jan 10, 2022 4:38 pm
by tools400
Did you specify the binding directory at the CRTSRVPGM command like this:

BNDDIR(LIBHTTP/HTTPAPI)

Thomas.

Re: Definition not found for the symbol

Posted: Wed Jan 12, 2022 3:02 pm
by OlivierPierre04
tks