Compiling Error in Fedora 14, 64 bit

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

zhangqinglong
Posts: 13
Joined: Fri Mar 21, 2014 8:36 pm
Location: Tsinghua

Re: Compiling Error in Fedora 14, 64 bit

Post by zhangqinglong »

Dear fmk,

I was eagerly waiting for it. The following is the output after making in /.../OpenSees/SRC



ContactMaterial2D.cpp: In function ‘void* OPS_NewContactMaterial2DMaterial()’:
ContactMaterial2D.cpp:54:116: warning: deprecated conversion from string constant to ‘char*’
ContactMaterial2D.cpp: In constructor ‘ContactMaterial2D::ContactMaterial2D()’:
ContactMaterial2D.cpp:114:68: error: cannot call constructor ‘ContactMaterial2D::ContactMaterial2D’ directly
ContactMaterial2D.cpp:114:68: error: for a function-style cast, remove the redundant ‘::ContactMaterial2D’
make: *** [ContactMaterial2D.o] Error 1
please help me to solve this error, thanks.
Thanks and regards
Post Reply