[vtkusers] VTK & VC++ without CMake

Jarno Ahma jarno.ahma at luukku.com
Sun Jul 8 13:46:30 EDT 2007


For errors like 'error LNK2005: _sprintf already defined in xx.lib': open project linker properties, go to input, and list default libraries to ignore in 'ignore specific library' (or tell linker not to use default libraries at all).
If compile generate error 'LNK2019: unresolved external symbol _WinMain at 16 referenced in function _WinMainCRTStartup', open project linker properties, go to advanced, and change the used subsystem to another.

Among the vtk library import definitions, lines..
#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"glu32.lib")
..might be useful to have.


Jarno Ahma wrote:
> Hi,
> 
> is it possible to create C++ codes using vtk's static libraries without
> CMake? And if so, how?
> I tried to create a simple app to test this and told VS where to look
> include and library files. All it does is generate a lot of compile
>  errors
> (already defined in blaa.lib x33, unresolved external symbol of
>  satan, and
> you are a bad person) :). 
> 
> VTK 5.0.2 is successfully compiled from source and installed
>  (include & lib
> folders).
> 
> -Jarno

...................................................................
Luukku Plus paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku


More information about the vtkusers mailing list