The file .dll can not be used by the opensees.exe
Moderators: silvia, selimgunay, Moderators
The file .dll can not be used by the opensees.exe
I followed the instructions of "Adding your code to Opensees" to build a .dll on a Windows Machine with Visual Studio 2010 Installed. the dll file has been compiled successfully. But it can't be used by Opensees.exe. The screen printed "can not create the material". Has anyone met the same problem? Did I miss some important things when building the DLL file?
Re: The file .dll can not be used by the opensees.exe
My OS is window 7 and 64 version.
Re: The file .dll can not be used by the opensees.exe
I have found the bugs. I didn't add the #ifdef _USRDLL.....
Re: The file .dll can not be used by the opensees.exe
If you get your cpp file from the opensees souce code, you should also add this-> before the parameters in the getCopy part. The transmit of parameters may go wrong if you dont do so, at least it happens in my file
Re: The file .dll can not be used by the opensees.exe
I have successfully built a DLL file. But I found another problem. I built the DLL file in my computer and it works in my computer. When I copied the DLL to another computer which is used for large computation, the opensees.exe can't create the material, that is the DLL file could not be used. The other computer is also window 7 and 64 version, but without Visual studio 2010. Has anyone met the same problem?
Re: The file .dll can not be used by the opensees.exe
Me again. I found that the other computer missed a msvcr100d.dll. So I copied it from the successful computer to the other one. But I also download the software 360 safety guard to repair 'the msvc**.dll file missing'(文件修复), which can be found in the manual service(人工服务). So this problem has been solved. Thanks.
Re: The file .dll can not be used by the opensees.exe
No problem for my dll file to run on another computer.
Did you build on debug version or release version?
fmk recommend to build on release version to share on another computer.
Did you build on debug version or release version?
fmk recommend to build on release version to share on another computer.
Re: The file .dll can not be used by the opensees.exe
Sudan wrote:
> No problem for my dll file to run on another computer.
> Did you build on debug version or release version?
> fmk recommend to build on release version to share on another computer.
Thanks, it works!!!
> No problem for my dll file to run on another computer.
> Did you build on debug version or release version?
> fmk recommend to build on release version to share on another computer.
Thanks, it works!!!
Re: The file .dll can not be used by the opensees.exe
I face the same problem, still need help!
I get the compiled dll file, but it seems the OpenSees.exe doesn't know its existence and just return "WARNING could not create uniaxialMaterial ElatsticPPcpp".
The OS is win7 64bit. Both 32bit and 64bit release of the dll files and corresponding Opensees.exe were tried. No missing the problem of missing #ifdef _USRDLLlosing "".
I get the compiled dll file, but it seems the OpenSees.exe doesn't know its existence and just return "WARNING could not create uniaxialMaterial ElatsticPPcpp".
The OS is win7 64bit. Both 32bit and 64bit release of the dll files and corresponding Opensees.exe were tried. No missing the problem of missing #ifdef _USRDLLlosing "".