Could not find the entrypoint (3260)

Boomn4x4

New Member
I have a C++ library, compiled in eclipse (if that matters) that I am using in Progress. And I'm getting a Could not find the entrypoint (3260)

The procedure is bulit as follows:
Code:
PROCEDURE msgi_send_one EXTERNAL {&libmsgi} CDECL PERSISTENT :
    define input        parameter destType       as character. /* 'QUEUE' or 'TOPIC'*/
    define input        parameter destination    as character. /* name of queue or topic */
    define input        parameter messageString  as character. /* message byte buffer (UTF-8) string */
    define input        parameter messageLength  as long.      /* Length of message in bytes */
    define return       parameter returnStatus   as long.      /* Integer with status info. 0 = success */
END PROCEDURE.


The procedure is called as:
Code:
run msgi_send_one(destType, queueName, longstring, length(longstring), OUTPUT rv).

The C++ prototype is:
Code:
MiStatus msgi_send_one(const char *destType, const char *destination, const char *message, uint32_t messageLength)

From what I have read, a 3260 means that something isn't declared correctly, but I cannot find anything that would suggest that.
 
Problem was in the compliation of the library object. I had to specify "extern "C"" in the function prototype to tell the compiler to to compile the function in "C" format instead of C++. Aparently C++ functions compile with extra information in the function names which Progress cannot understand.
 
Back
Top