在Mac OS X上使用g ++编译器链接错误是64位架构

时间:2013-11-13 22:54:07

标签: c++ xcode macos

我一直收到这个错误,我不知道如何解决这个问题.... gcc编译器是64位... .o文件也是64位....关于修复这个问题的任何想法?< / p>

LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM

make[1]: Nothing to be done for `tcl'.

make[2]: Nothing to be done for `tcl'.

Undefined symbols for architecture x86_64:

  "SMAMaterial::SMAMaterial(int, double, double, double, double, double, double)", referenced from:
      TclModelBuilderUniaxialMaterialCommand(void*, Tcl_Interp*, int, char const**, Domain*) in libOpenSees.a(TclModelBuilderUniaxialMaterialCommand.o)

"SuperelasticSMA::SuperelasticSMA(int, double, double, double, double, double, double, double, double, double, double, double)", referenced from:
      TclModelBuilderUniaxialMaterialCommand(void*, Tcl_Interp*, int, char const**, Domain*) in libOpenSees.a(TclModelBuilderUniaxialMaterialCommand.o)

ld: symbol(s) not found for architecture x86_64

collect2: error: ld returned 1 exit status

make[1]: *** [tcl] Error 1

make: *** [all] Error 2

如果我查看TclModelBuilderUniaxialMaterialCommand.o,那么错误是:

SMA�Warning insufficient arguments
�Want: uniaxialMaterialSMA  tag  E  eps_L  sig_AS_s  sig_AS_f  sig_SA_s  sig_SA_f��������warning invalid uniaxialMaterial SMA tag�warning invalid E
�uniaxialMaterial SMA: �warning invalid eps_L
�warning invalid sig_AS_s
�warning invalid sig_AS_f
�warning invalid sig_SA_s
�warning invalid sig_SA_f
�SuperelasticSMA�������Want: uniaxialMaterial SuperelasticSMA tag? elasticStiffness? positiveYieldStress? positiveUnloadingStress? positiveStrainHardeningRatio?�������                                       { positiveSecondYieldStrain? } {positiveSecondStrainHardeningRatio?}�����WARNING invalid uniaxialMaterial SuperelasticSMA tag����WARNING invalid elasticStiffness
�������uniaxiaMaterial SuperelasticSMA: �������WARNING invalid positiveYieldStress
����WARNING invalid positiveUnloadingStress
��������WARNING invalid positiveStrainHardeningRatio
���WARNING invalid positiveSecondYieldStrain
������WARNING invalid positiveSecondStrainHardeningRatio
�����WARNING invalid negativeYieldStress
����WARNING invalid negativeUnloadingStress
��������WARNING invalid negativeStrainHardeningRatio
���WARNING invalid negativeSecondYieldStrain
������WARNING invalid negativeSecondStrainHardeningRatio

我在PC上使用Visual Basic编译时使用了这些相同的代码,但是我在Mac上再次使用这些代码并且遇到了这些问题。

思想?

0 个答案:

没有答案