[IGSTK-Users] pure virtual function in

Yaniv, Ziv ZYaniv at childrensnational.org
Fri Dec 21 09:35:01 EST 2012


Hi Sean,

This seems to be a problem with the C++ code generated by FLTK. The PivotCalibrationFLTKWidgetExampleUI.{cxx,h} are autogenerated by FLTK's fluid program from the PivotCalibrationFLTKWidgetExampleUI.fl file. In the older versions of FLTK the generated cxx file contained the following implementation of the function:

void PivotCalibrationFLTKWidgetExampleUI::InitializeTrackingAndCalibration() {
}


An empty implementation which is overridden in the descendent PivotCalibrationFLTKWidgetExample. Based on the error you get I cannot be sure what is the problem. Please take a look at the *.fl file and the code generated by fluid. You will probably need to modify the *.fl file so that the generated C++ code doesn't cause this error.

        regards
            Ziv



--
Ziv Yaniv, Ph.D., 
Principal Investigator,
The Sheikh Zayed Institute for Pediatric Surgical Innovation
Children's National Medical Center
6th Floor Main Hospital, Room M7740
111 Michigan Ave., N.W
Washington, D.C 20010
Phone: 202-476-1288
email: zyaniv at childrensnational.org




-----Original Message-----
From: igstk-users-bounces at public.kitware.com on behalf of Sean Lee
Sent: Fri 12/21/2012 8:29 AM
To: ozgur_guler at gmx.at
Cc: igstk-users at public.kitware.com
Subject: Re: [IGSTK-Users] pure virtual function in
 

Thanks, Ozgur.
It was fltk-1.3.2. But how do I fix it? Can I keep this version and fix the problem?
Sean

Date: Fri, 21 Dec 2012 07:56:08 -0500
Subject: Re: [IGSTK-Users] pure virtual function in
From: ozgur_guler at gmx.at
To: kevinseanlee at live.com
CC: igstk-users at public.kitware.com

Hi Sean, 

which FLTK version do you use?

IGSTK is compatible with FLTK versions 1.1.X
Best,

Ozgur
On Dec 20, 2012 10:19 PM, "Sean Lee" <kevinseanlee at live.com> wrote:





I am getting this link error when I building the calibration example.
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------2>------ Build started: Project: PivotCalibrationFLTKWidgetExample, Configuration: Debug Win32 ------
2>PivotCalibrationFLTKWidgetExampleUI.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PivotCalibrationFLTKWidgetExampleUI::InitializeTrackingAndCalibration(void)" (?InitializeTrackingAndCalibration at PivotCalibrationFLTKWidgetExampleUI@@UAEXXZ)
2>PivotCalibrationFLTKWidgetExampleUI.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PivotCalibrationFLTKWidgetExampleUI::SaveCalibration(void)" (?SaveCalibration at PivotCalibrationFLTKWidgetExampleUI@@UAEXXZ)
2>C:\OpensourceBinary\IGSTK2\bin\Debug\PivotCalibrationFLTKWidgetExample.exe : fatal error LNK1120: 2 unresolved externals========== Build: 1 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========

But suppose that those two functions are pure virtual functions and would be overridden in  PivotCalibrationFLTKWidgetExample. 

Any ideas what are happening? Thanks.
Sean 		 	   		  


_______________________________________________

Powered by www.kitware.com



Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html



Follow this link to subscribe/unsubscribe:

http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
 		 	   		  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20121221/51cede83/attachment.html>


More information about the IGSTK-Users mailing list