Saturday, August 3, 2013

Teamcenter 9.1: Can not Compile and Link in (64bit version)

  • I was trying to build using Teamcenter 9.1 libraries. So I encountered linking errors. I searched GTAC and I found the following PR which has no solution. 
  • I have found a solution for this PR.
  • Symptom
  • Problem/Questions/Request:Problem When compile error is occur to build in the "-64bit" option of Tc9.1 (64bit version). This message is displayed when you compile.
  • fatal error C1189: #error : Sorry, you have to change unidefs.h to make this work on this machine.
  • Therefore, result of changing the "unidefs.h", was able to compile. However, link error occurs. sample.obj: error LNK2019: External symbol "__imp__ITEM_find_item" unresolved was referenced in function "_sample_validate_item_rev_id" sample.obj: error LNK2019: External symbol "__imp__CUSTOM_register_exit" unresolved was referenced in function "_sample_register_callbacks" sample.dll: LNK1120 fatal error: external reference 2 is unresolved.
  • Solution:
  • 1. Install X64 bit compilers in visual studio.
  • 2. Restart your machine.
  • 3. open TC command prompt and go to MSDEV_HOME.
  • 4. Type this: call vcvarsall amd64
  • 5. compile using compile.bat.
  • More Details: click here.
  • No comments:

    Post a Comment