What do I have to do? (Win32 -- VC++ 6)

Nigel Nunn nNunn at ausport.gov.au
Sat May 20 18:38:08 EDT 2000


Hi Stefano,

> Debug/ColorSph.exe : 
> fatal error LNK1120: 14 unresolved externals. 
> Error executing link.exe. 
>
> ColorSph.exe - 15 error(s), 0 warning(s) 
> *******************************************************
> What do i have to do ? 


Looks like you have not yet added the Vtk library file[s] to 
your VC++ project. 

If you are working with the self-extracting pre-built version 
of Vtk, then there will be a file named something like

  "vtkdll.lib"


Add this file to your project:

  Project  /  Add to Project  /  Files... / 

  Files of type  [ Library Files (.lib) ]


While the DEFINITIONS of the missing classes mentioned in the 
build error messages are to be found in the (.dll) file

  "vtkdll.dll"

when building the program, the compiler just needs to find the 
DECLARATIONS of all the classes. These are in the .lib file.

When you actually RUN your program, it will "dynamically link"
with the dynamic link library ("DLL"), i.e. "vtkdll.dll".

This dll file will need to be in a place where your program can
find it, such as 

  c:\Windows\System\vtkdll.dll 

It will also work if you simply copy the dll to the same 
directory as the your ColorSph.exe program.  

For all the Vtk calls in the application, ColorSph.exe 
will call the pre-compiled, dynamically loaded code in
the file vtkdll.dll.

Good luck -- Once you sort out the details, you will see
that all the effort was MORE than worthwhile!!

Nigel

PS: There are other important "Project Settings" that need 
to set up, but unless you get lots of new build errors, 
these other settings are probably correct.  

  "Small steps, Ellie."


--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list