Skip to main content
JeffH1
16-Pearl
December 7, 2013
Solved

Prime 3.0 User Function

  • December 7, 2013
  • 2 replies
  • 3426 views

Anyone having trouble linking a user function with the user library in Prime 3.0? I can't even link the basic examples. I get an error message:

External _CreateUserFunction not found

from the linker. It's definitely defined in mcaduser.h that I compiled with. It's like it wasn't exported from mcaduser.lib

Anyone else having this problem?

Best answer by jsheehan

Jeff,

This typically happens to me when I am linking on a 64 bit machine but my Configuration manager in Dev Studio is building a Win32 project.

I build Customer Functions in prime 3.0 all the time and it works fine and CreateuserFunction is definitely resolved by MCADUSER.LIB .. but you have to link 32 bit lib for 32 bit targets and 64 bit lib for 64 bit targets, otherwise underfined errors occur.

2 replies

24-Ruby IV
December 7, 2013

Jeff Henning wrote:

Anyone having trouble linking a user function with the user library in Prime 3.0? I can't even link the basic examples. I get an error message:

External _CreateUserFunction not found

from the linker. It's definitely defined in mcaduser.h that I compiled with. It's like it wasn't exported from mcaduser.lib

Anyone else having this problem?

I have others problem user library in Prime 3.0:wspPrimr.png

jsheehan1-VisitorAnswer
1-Visitor
December 10, 2013

Jeff,

This typically happens to me when I am linking on a 64 bit machine but my Configuration manager in Dev Studio is building a Win32 project.

I build Customer Functions in prime 3.0 all the time and it works fine and CreateuserFunction is definitely resolved by MCADUSER.LIB .. but you have to link 32 bit lib for 32 bit targets and 64 bit lib for 64 bit targets, otherwise underfined errors occur.

24-Ruby IV
December 11, 2013

John T. Sheehan wrote:

I build Customer Functions in prime 3.0 all the time and it works fine

Do you have a list of Customer Functions in the list of Prime functions? As in Mathcad 15 - see please my picture above.

Do you have problems with units.

1-Visitor
December 11, 2013

Hi Valery

No, there us no User EFI display in Custom Functions .. yet. It is on the list but frankly not a high priority.

I will conitnue to fight for it.

My functions so far are unitless. The 225 Prode functions, my gmtime (time and date) and the read/write HDF.

Is there something I should be afraid of? I am trying to think, but Mathcad EFIs did not handled units at all, you added them after outputting arrays and vectors, by multiply output by unit.