compiling udf

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

hello, trying to compile a udf from an acusolve tutorial but i dont have a compiler in the computer.

cant install either due to not being admin in the computer(university based).

 

can someone help me with ways to compile it to run the tutorial?

Tagged:

Answers

  • acupro
    acupro
    Altair Employee
    edited February 2015

    There is no compiler provided with the software installation.  However, for WIN64, Visual Studio Express 2013 provides a free compiler that works very nicely.  You could install AcuSolve and Visual Studio Express 2013 on a different computer (home/personal/etc), compile the UDF, then take the resultant DLL to the university computer to run the simulation.  (The compiling process will not require a license.)

  • whj
    whj Altair Community Member
    edited May 2019

    Hello:

    I have encountered some problems in learning acusolve acu-4002, and I have been unable to run gravity.c file. My compiler software has been installed (VS2013), and the environment configuration has been completed according to the relevant information (Figure 1). However, the following problem was encountered in operation (Figure 2). The gravity. obj file cannot be found, nor can the. Dll file be generated.

     

    I also tried to run gravity. C program separately in VS2013, but I also found many errors. (Fig. 3)

    1. error LNK2019: Unparsable external symbol _udfCheckNumUsrVals, which is referenced in function _usrGravity

    2. error LNK1120: Three unresolved external commands

    3. IntelliSense: Undefined identifier 'Integer'

    4. IntelliSense: Undefined identifier 'String'

    5. IntelliSense: Undefined identifier 'Void'

    6. IntelliSense: Undefined identifier 'Real'

    I hope you can help me. Thank you very much.

    <?xml version="1.0" encoding="UTF-8"?>1.jpg

    <?xml version="1.0" encoding="UTF-8"?>2.jpg

    <?xml version="1.0" encoding="UTF-8"?>3.png

    <?xml version="1.0" encoding="UTF-8"?>00F165EB%409E4D7633.44C2D15C.jpg_recompress.jpg

    <?xml version="1.0" encoding="UTF-8"?>5.png

  • acupro
    acupro
    Altair Employee
    edited May 2019

    Also in other thread...