I am studying how to add a new material in OpenSees and just follow the tutorial given by Dr. Frank Mckenna.
However, when I included all the cpp files and built it, then came out this: fatal error C1083: “bool.h”: No such file or directory.
I do not know why this came out, as I checked all the steps in Dr. Mckenna's video and pdf file.
Fatal error C1083 in Adding A New Material process
Moderators: silvia, selimgunay, Moderators
Re: Fatal error C1083 in Adding A New Material process
I put the file "bool.h"(from src) into the "core" directory and add it in the source files, it works! But i face the following errors (Win10 64bit, visual studio 2017, v2.5.0):
1>dllmain.cpp
1>win32Functions.obj : error LNK2005: _DllMain@12 already defined in win32Functions.obj
1> Creating library E:\OpenseesSecondary\source code\DEVELOPER\material\cpp\ElasticPPcpp\Release\ElasticPPcpp.lib and object E:\OpenseesSecondary\source code\DEVELOPER\material\cpp\ElasticPPcpp\Release\ElasticPPcpp.exp
1>E:\OpenseesSecondary\source code\DEVELOPER\material\cpp\ElasticPPcpp\Release\ElasticPPcpp.dll : fatal error LNK1169: one or more multiply defined symbols found
1>Done building project "ElasticPPcpp.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
1>dllmain.cpp
1>win32Functions.obj : error LNK2005: _DllMain@12 already defined in win32Functions.obj
1> Creating library E:\OpenseesSecondary\source code\DEVELOPER\material\cpp\ElasticPPcpp\Release\ElasticPPcpp.lib and object E:\OpenseesSecondary\source code\DEVELOPER\material\cpp\ElasticPPcpp\Release\ElasticPPcpp.exp
1>E:\OpenseesSecondary\source code\DEVELOPER\material\cpp\ElasticPPcpp\Release\ElasticPPcpp.dll : fatal error LNK1169: one or more multiply defined symbols found
1>Done building project "ElasticPPcpp.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Re: Fatal error C1083 in Adding A New Material process
Did you manage to solve the problem?
In my case it cannot find, 'tcl.h' file. Have you also encountered this error?
In my case it cannot find, 'tcl.h' file. Have you also encountered this error?