[vtkusers] vtkPowerCrustSurfaceReconstruction unresolvedexternal symbol

Bayliss, Chris (Chicago) cbayliss at gnresound.com
Thu Apr 5 16:41:38 EDT 2012


Bill,

That successfully resolved all of the compiling errors.  When I ran my program (TPS) I got another error: "Cannot find vtkHybrid.dll, you may need to re-install the program".

I was able to find this file in the bin\debug folder.  I am re-building vtk to see if this resolves the issue.

Thanks,

Chris

-----Original Message-----
From: Bill Lorensen [mailto:bill.lorensen at gmail.com] 
Sent: Thursday, April 05, 2012 3:21 PM
To: Bayliss, Chris (Chicago)
Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolvedexternal symbol

If the class in in Hybrid it should have
VTK_HYBRID_EXPORT

On Thu, Apr 5, 2012 at 4:17 PM, Bayliss, Chris (Chicago)
<cbayliss at gnresound.com> wrote:
> Are you referring to the " class VTK_GRAPHICS_EXPORT vtkPowerCrustSurfaceReconstruction", with the " VTK_GRAPHICS_EXPORT" not highlighted?
>
> What would I need to change to get the right export?
>
> Chris
>
>
>
> -----Original Message-----
> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
> Sent: Thursday, April 05, 2012 3:11 PM
> To: Bayliss, Chris (Chicago)
> Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolvedexternal symbol
>
> The code you sent has the wrong EXPORT.
>
> On Thu, Apr 5, 2012 at 3:54 PM, Bayliss, Chris (Chicago)
> <cbayliss at gnresound.com> wrote:
>> Bill,
>>
>> The PowerCrust files are attached as well as the cmakelists file from the hybrid directory and the program I am working on (TPS), which will use the power crust.
>>
>> Thanks for your help.
>>
>> Chris
>>
>>
>>
>> -----Original Message-----
>> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
>> Sent: Thursday, April 05, 2012 2:47 PM
>> To: Bayliss, Chris (Chicago)
>> Cc: VTK Users
>> Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolvedexternal symbol
>>
>> The class may be using old mechanisms. Send me attachments to the .h
>> and .cxx files (off list).
>>
>>
>> On Thu, Apr 5, 2012 at 3:27 PM, Bayliss, Chris (Chicago)
>> <cbayliss at gnresound.com> wrote:
>>> The following errors occurred when the "VTK_HYBRID_EXPORT" was un-commented in the header file.
>>>
>>> 1.  Error       15      error LNK1120: 5 unresolved externals   C:\Program Files\VTK\VTK_bin\bin\Debug\vtkHybrid.dll    1
>>>
>>> 2.  Error       10      error LNK2001: unresolved external symbol "private: virtual char const * __thiscall vtkPowerCrustSurfaceReconstruction::GetClassNameInternal(void)const " (?GetClassNameInternal at vtkPowerCrustSurfaceReconstruction@@EBEPBDXZ)  C:\Program Files\VTK\VTK_bin\Hybrid\vtkPowerCrustSurfaceReconstruction.obj
>>>
>>> 3.  Error       12      error LNK2001: unresolved external symbol "protected: virtual class vtkObjectBase * __thiscall vtkPowerCrustSurfaceReconstruction::NewInstanceInternal(void)const " (?NewInstanceInternal at vtkPowerCrustSurfaceReconstruction@@MBEPAVvtkObjectBase@@XZ)  C:\Program Files\VTK\VTK_bin\Hybrid\vtkPowerCrustSurfaceReconstruction.obj
>>>
>>> 4.  Error       11      error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkPowerCrustSurfaceReconstruction::IsA(char const *)" (?IsA at vtkPowerCrustSurfaceReconstruction@@UAEHPBD at Z)   C:\Program Files\VTK\VTK_bin\Hybrid\vtkPowerCrustSurfaceReconstruction.obj
>>>
>>> 5.  Error       13      error LNK2019: unresolved external symbol "__declspec(dllimport) const vtkPowerCrustSurfaceReconstruction::`vftable'" (__imp_??_7vtkPowerCrustSurfaceReconstruction@@6B@) referenced in function "protected: __thiscall vtkPowerCrustSurfaceReconstruction::vtkPowerCrustSurfaceReconstruction(void)" (??0vtkPowerCrustSurfaceReconstruction@@IAE at XZ)   C:\Program Files\VTK\VTK_bin\Hybrid\vtkPowerCrustSurfaceReconstruction.obj
>>>
>>> 6.  Error       14      error LNK2019: unresolved external symbol "__declspec(dllimport) public: double __thiscall vtkPowerCrustSurfaceReconstruction::GetEstimate_r(void)" (__imp_?GetEstimate_r at vtkPowerCrustSurfaceReconstruction@@QAENXZ) referenced in function "void __cdecl adapted_main(void)" (?adapted_main@@YAXXZ)   C:\Program Files\VTK\VTK_bin\Hybrid\vtkPowerCrustSurfaceReconstruction.obj
>>>
>>>
>>> Chris
>>>
>>> Christopher J. Bayliss
>>> Mechanical Engineer
>>>
>>> Direct  847.832.3245
>>> Corp.   800.123.4567, ext. 2345
>>> Fax     847.832.3202
>>> 2601 Patriot Boulevard
>>> Glenview, IL 60026
>>> www.beltone.com
>>>
>>>
>>> -----Original Message-----
>>> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
>>> Sent: Thursday, April 05, 2012 2:11 PM
>>> To: Bayliss, Chris (Chicago)
>>> Cc: VTK Users
>>> Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolvedexternal symbol
>>>
>>> (Keep discussion on the list)
>>> No need to change any other files;
>>>
>>> What errors do you get with that change.
>>>
>>>
>>> On Thu, Apr 5, 2012 at 3:02 PM, Bayliss, Chris (Chicago)
>>> <cbayliss at gnresound.com> wrote:
>>>> Bill,
>>>>
>>>> Sorry for that last e-mail, I think I know what you were saying.
>>>>
>>>> Try this line in the header file:
>>>>
>>>> class VTK_HYBRID_EXPORT vtkPowerCrustSurfaceReconstruction
>>>>
>>>> Instead of:
>>>>
>>>> class /*VTK_GRAPHICS_EXPORT*/ vtkPowerCrustSurfaceReconstruction : public vtkDataSetToPolyDataFilter
>>>>
>>>>
>>>> I started with the "VTK_HYBRID_EXPORT" un-commented, but I got external dependency errors when trying to compile VTK.  Do I need to modify another file to fix the dependency errors?
>>>>
>>>> Chris
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Bayliss, Chris (Chicago)
>>>> Sent: Thursday, April 05, 2012 1:57 PM
>>>> To: Bill Lorensen
>>>> Cc: vtkusers at vtk.org
>>>> Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolvedexternal symbol
>>>>
>>>>
>>>> Do I add that line to the cmakelists file in the hybrid directory?  I apologize for any silly questions I may ask, I am very new to cmake, vtk, C++, and writing software in general.
>>>>
>>>> Thanks,
>>>>
>>>> Chris
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
>>>> Sent: Thursday, April 05, 2012 1:41 PM
>>>> To: Bayliss, Chris (Chicago)
>>>> Cc: vtkusers at vtk.org
>>>> Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolved external symbol
>>>>
>>>> First try this:
>>>> class VTK_HYBRID_EXPORT vtkPowerCrustSurfaceReconstruction
>>>>
>>>> On Thu, Apr 5, 2012 at 2:29 PM, Bayliss, Chris (Chicago)
>>>> <cbayliss at gnresound.com> wrote:
>>>>> Bill,
>>>>>
>>>>> I have added the vtkpowercrustsurfacereconstruction.cxx line to the cmakelists file.  I should mention I have also moved the Powercrust header and .cxx files to the Hybrid directory, following a post from Tim Hutton suggesting this would work.
>>>>>
>>>>> I have re-run cmake and built vtk with these modifications with no errors, however, my project which uses the PowerCrust algorithm still produces the following link error.
>>>>>
>>>>> Error   1       error LNK2019: unresolved external symbol "public: static class vtkPowerCrustSurfaceReconstruction * __cdecl vtkPowerCrustSurfaceReconstruction::New(void)" (?New at vtkPowerCrustSurfaceReconstruction@@SAPAV1 at XZ) referenced in function _main   C:\Program Files\VTK\TPS\TPS.obj
>>>>>
>>>>> Do I need to modify the cmakelists file in my project directory somehow?  The hybrid directory has already been included in that file, I would think that should be sufficient.  I am not sure what else to try.
>>>>>
>>>>> Your help is much appreciated.
>>>>>
>>>>> Chris
>>>>>
>>>>> -----Original Message-----
>>>>> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
>>>>> Sent: Friday, March 09, 2012 5:43 PM
>>>>> To: Bayliss, Chris (Chicago)
>>>>> Cc: vtkusers at vtk.org
>>>>> Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolved external symbol
>>>>>
>>>>> You will need to modify the CMakeLists.txt file to include the filter.
>>>>> Normally, you would do this in your own directory and not Common.
>>>>>
>>>>> On Fri, Mar 9, 2012 at 3:00 PM, Bayliss, Chris (Chicago)
>>>>> <cbayliss at gnresound.com> wrote:
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>>
>>>>>> I am trying to use the vtkPowerCrustSurfaceReconstruction filter, but I am
>>>>>> getting the following error:
>>>>>>
>>>>>>
>>>>>>
>>>>>> error LNK2019: unresolved external symbol "public: static class
>>>>>> vtkPowerCrustSurfaceReconstruction * __cdecl
>>>>>> vtkPowerCrustSurfaceReconstruction::New(void)"
>>>>>> (?New at vtkPowerCrustSurfaceReconstruction@@SAPAV1 at XZ) referenced in function
>>>>>> _main    C:\Program Files\VTK\TPS\TPS.obj
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have added vtkPowerCrustSurfaceReconstruction.h and
>>>>>> vtkPowerCrustSurfaceReconstruction.cxx to the following directories and
>>>>>> re-built VTK, but no luck.
>>>>>>
>>>>>>
>>>>>>
>>>>>> C:\Program Files\VTK\vtk-5.8.0\Common
>>>>>>
>>>>>> C:\Program Files\VTK\VTK_bin\Common
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have also modified the header file as suggested by Tim Hutton.
>>>>>>
>>>>>> class /*VTK_GRAPHICS_EXPORT*/ vtkPowerCrustSurfaceReconstruction : public
>>>>>> vtkDataSetToPolyDataFilter
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> There are some older posts relating to this issue, but I could not find any
>>>>>> solutions posted.  Any help would be much appreciated.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>>
>>>>>>
>>>>>> Chris
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Powered by www.kitware.com
>>>>>>
>>>>>> Visit other Kitware open-source projects at
>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>
>>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>>>
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>>
>>>>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>>>>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>>>>> ******************** DISCLAIMER END ************************
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Unpaid intern in BillsBasement at noware dot com
>>>>
>>>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>>>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>>>> ******************** DISCLAIMER END ************************
>>>>
>>>>
>>>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>>>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>>>> ******************** DISCLAIMER END ************************
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>>>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>>>> ******************** DISCLAIMER END ************************
>>>>
>>>>
>>>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>>>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>>>> ******************** DISCLAIMER END ************************
>>>>
>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>>> ******************** DISCLAIMER END ************************
>>>
>>>
>>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>>> ******************** DISCLAIMER END ************************
>>>
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>>
>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>> ******************** DISCLAIMER END ************************
>>
>>
>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
>> ******************** DISCLAIMER END ************************
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
> ******************** DISCLAIMER END ************************
>
>
> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
> ******************** DISCLAIMER END ************************
>



-- 
Unpaid intern in BillsBasement at noware dot com

**** GN GROUP NOTICE - AUTOMATICALLY INSERTED **** 
The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you. 
******************** DISCLAIMER END ************************


**** GN GROUP NOTICE - AUTOMATICALLY INSERTED **** 
The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you. 
******************** DISCLAIMER END ************************




More information about the vtkusers mailing list