Jump to content
Sign in to follow this  
yao

How do I compile a UDF on WINDOWS installations?

Recommended Posts

If you have a compiler on your system, make sure the /bin/ directory of the AcuSolve installation is included in the PATH environment variable. Then from the compiler command prompt - and in the directory where the UDF is located - issue acuMakeDll.

For example, on a WIN64 machine with Visual Studio 2005 installed, place the following in the C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin\amd64\vcvarsamd64.bat file. These lines can be copied from the \bin\Acusim.bat file located in the AcuSolve installation.

set ACUSIM_HOME=C:\Acusim\ 
set ACUSIM_VERSION=V1.8b 
set ACUSIM_MACHINE=WIN64 
set ACUSIM_ROOT=%ACUSIM_HOME%\%ACUSIM_MACHINE%\%ACUSIM_VERSION% 
set ACUSIM_SYSTEM_CNF=%ACUSIM_ROOT%\script\Acusim.cnf 
set ACUSIM_CNF_FILES=.\Acusim.cnf:~\Acusim.cnf:%ACUSIM_SYSTEM_CNF%

set PATH=%ACUSIM_ROOT%\base\lib\site-packages;%PATH% 
set PATH=%ACUSIM_ROOT%\base\DLLs;%PATH% 
set PATH=%ACUSIM_ROOT%\base\bin;%PATH% 
set PATH=%ACUSIM_ROOT%\bin;%PATH%

There is no compiler included with the AcuSolve distribution, so you will need to obtain your own compiler. It needs to be a 32-bit compiler for 32-bit installations, and a 64-bit compiler for 64-bit installations.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...