Search found 4 matches

by jmachacek
Sun May 17, 2015 2:15 am
Forum: Framework
Topic: Error compiling new material - Fortran
Replies: 7
Views: 9845

Re: Error compiling new material - Fortran

Maybe it is easier to find the mistake i made if i write down the steps i made:

Mainly i followed the instructions from: https://www.youtube.com/watch?v=BaxFLF6A8Rg

I downloaded and installed TortoiseSVN and downloaded the Developer folder.
To create the .dll i used VisualStudio 2012 and intel visual fortran: New project -> Intel Visual Fortran -> Library -> Dynamic-link Library
I named the file exactly like the materialname.

I loaded all 3 files (materialAPI.f , elasticPPf.f , materialTypes.f) to the source files and tried to build it. The errors are written above.

I was searching for the functions: OPS_GETINTINPUT, OPS_GETDOUBLEINPUT ...

They are also included in the materialAPI file, but there are only the interfaces defined.

Did i miss a step, where i have to load some libraries or add another file?
by jmachacek
Wed May 13, 2015 11:22 am
Forum: Framework
Topic: Error compiling new material - Fortran
Replies: 7
Views: 9845

Error compiling new material - Fortran

Hi all,

All the materials i use are written in Fortran - therefore i wanted to study the example for adding a new material written in Fortran:
http://opensees.berkeley.edu/WebSVN/lis ... 323c98c91f
(using TortoiseSVN)

I am using VisualStudio 2012 and Visual Fortran Composer XE 2013 to create the elasticPPf.dll
I included all the Fortran-files of the example to the source files of the project.

Unfortunately the .dll can not be built,
the following error messages occure:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Compiling with Intel(R) Visual Fortran Compiler XE 14.0.4.237 [IA-32]...
ifort /nologo /debug:full /Od /I"C:\OpenSees\DEVELOPER\core" /warn:interfaces /module:"Debug\\" /object:"Debug\\" /Fd"Debug\vc110.pdb" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c /extfor:f /Qvc11 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\\bin" "C:\OpenSees\DEVELOPER\material\fortran\materialTypes.f"
ifort /nologo /debug:full /Od /I"C:\OpenSees\DEVELOPER\core" /warn:interfaces /module:"Debug\\" /object:"Debug\\" /Fd"Debug\vc110.pdb" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c /extfor:f /Qvc11 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\\bin" "C:\OpenSees\DEVELOPER\material\fortran\materialAPI.f"
ifort /nologo /debug:full /Od /I"C:\OpenSees\DEVELOPER\core" /warn:interfaces /module:"Debug\\" /object:"Debug\\" /Fd"Debug\vc110.pdb" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c /extfor:f /Qvc11 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\\bin" "C:\OpenSees\DEVELOPER\material\fortran\elasticPPf.f"
Linking...
Link /OUT:"Debug\elasticPPf.dll" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"C:\OpenSees\DEVELOPER\material\fortran\elasticPPf\elasticPPf\Debug\elasticPPf.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\OpenSees\DEVELOPER\material\fortran\elasticPPf\elasticPPf\Debug\elasticPPf.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"C:\OpenSees\DEVELOPER\material\fortran\elasticPPf\elasticPPf\Debug\elasticPPf.lib" /DLL "Debug\materialTypes.obj" "Debug\materialAPI.obj" "Debug\elasticPPf.obj"
Link: executing 'link'
Bibliothek "C:\OpenSees\DEVELOPER\material\fortran\elasticPPf\elasticPPf\Debug\elasticPPf.lib" und Objekt "C:\OpenSees\DEVELOPER\material\fortran\elasticPPf\elasticPPf\Debug\elasticPPf.exp" werden erstellt.
elasticPPf.obj : error LNK2019: unresolved external symbol "_OPS_GETINTINPUT" referenced in function "_ELASTICPPF". (i translated this one)
elasticPPf.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_OPS_GETDOUBLEINPUT" in Funktion "_ELASTICPPF".
elasticPPf.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_OPS_ALLOCATEMATERIAL" in Funktion "_ELASTICPPF".
elasticPPf.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_OPS_ERROR" in Funktion "_LOCALINIT".
Debug\elasticPPf.dll : fatal error LNK1120: 4 nicht aufgelöste Externe

elasticPPf - 5 error(s), 0 warning(s)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Does anyone have an idea how to solve this problem?

Thanks and regards.
by jmachacek
Thu Apr 30, 2015 8:42 pm
Forum: OpenSees.exe Users
Topic: Tcl/Tk executable Not Found
Replies: 7
Views: 5781

Re: Tcl/Tk executable Not Found

Thank you!
by jmachacek
Thu Apr 30, 2015 7:34 am
Forum: OpenSees.exe Users
Topic: Tcl/Tk executable Not Found
Replies: 7
Views: 5781

Re: Tcl/Tk executable Not Found

Hello,

i have the same problem. Does anyone know if its also possible to use the Tcl/Tk from this website: http://www.tcl.tk/software/tcltk/download.html (it seems to be a more current version).