[Insight-users] LINK errors when extending insight applications

Luis Ibanez luis.ibanez at kitware.com
Thu Sep 14 10:10:35 EDT 2006


Hi Eve,


You *MUST* still open the global workspace file (.dsw) in
Visual Studio 6.0 or solution file (.sln) in visual Studio 7.0,7.1
not any of the individual project files.


Then you can select in the GUI the project that you need to build,
and just build that project.

The reason why you need to load the full workspace or solution file
is that there are setting created only at that level, that specify
things such as the location of header files to use and the libraries
to link with executables.

As you just discovered, opening a individual project does not give
you that information.


    Regards,


        Luis


------------------
Eve wrote:
> Hello ITK-users,
> 
> I am currently trying to modify the Image Registration application. The
> directory tree I have setup is:
> 
> -InsightApplications
> 
> --- Auxillary
> ...
> 
> -- Build 
> ------Auxilary
> ------ImageRegistration
> -----------Debug
> 
> -- ImageRegistration
> ...
> 
> 
> My first question is, when modifying the source code for ImageRegistration/
> ImageViewer, which project should I open:
> 1. InsightApplications > Build > ImageRegistration.vcproj
> or
> 2. InsightApplications > Build > ImageRegistration >
> ImageRegistration.vcproj
> 
> 
> This question arose because I got the following link errors:
> 
> Linking...
>    Creating library Debug\ImageRegistration2D.lib and object
> Debug\ImageRegistration2D.exp
> ImageRegistrationConsole.obj : error LNK2001: unresolved external symbol
> "public: virtual void __thiscall
> ImageRegistrationConsole::SaveValidationImage(void)"
> (?SaveValidationImage at ImageRegistrationConsole@@UAEXXZ)
> ImageRegistrationConsole.obj : error LNK2001: unresolved external symbol
> "public: virtual void __thiscall
> fltkImageViewerGUI::SaveClickedPoints(void)"
> (?SaveClickedPoints at fltkImageViewerGUI@@UAEXXZ)
> Debug\ImageRegistration2D.exe : fatal error LNK1120: 2 unresolved externals
> 
> Build log was saved at
> "file://h:\codes\applic\InsightApplications\build7\ImageRegistration2D\Debug\BuildLog.htm"
> ImageRegistration2D - 3 error(s), 0 warning(s)
> 
> The cmakelists file is attached.
> 
> The second question: Is it necessary to input colortable for the overlaid
> image when the fltk::ImageViewerGUI is used? The overlaid image I got
> currently is shown in monotone. I have attempted to use a specified
> colormap, but the same overlay is shown. I have attempted to extend the
> fltk::ImageViewer but got the similar LINK errors.
> 
> Thank you for your help!
> 
> Best,
> Eve
> 
> http://www.nabble.com/user-files/235922/CMakeLists.txt CMakeLists.txt 
> http://www.nabble.com/user-files/235923/screenshot.png 




More information about the Insight-users mailing list