Hello,<br />
Can anybody tell me why this errors occures?<br />
<br />
--------------------Configuration: vtk1 - Win32 Debug--------------------<br />
Compiling...<br />
vtk1.cpp<br />
Linking...<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCD.lib(crt0dat.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _sprintf already defined in LIBCD.lib(sprintf.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _printf already defined in LIBCD.lib(printf.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _abort already defined in LIBCD.lib(abort.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj)<br />
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in LIBCD.lib(dbgheap.obj)<br />
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library<br />
Debug/vtk1.exe : fatal error LNK1169: one or more multiply defined symbols found<br />
Error executing link.exe.<br />
<br />
vtk1.exe - 12 error(s), 1 warning(s)<br />
<br />
<br />
<br />
My code is<br />
#include <string><br />
<br />
<br />
#include <vtkSphereSource.h><br />
#include <vtkPolyDataMapper.h><br />
#include <vtkProperty.h><br />
#include <vtkActor.h><br />
#include <vtkRenderWindow.h><br />
#include <vtkRenderer.h><br />
#include <vtkRenderWindowInteractor.h><br />
<br />
int main ()<br />
{<br />
        printf("Hello");<br />
<br />
  // create sphere geometry<br />
        vtkSphereSource *sphere = vtkSphereSource::New();<br />
  sphere->SetRadius(1.0);<br />
  sphere->SetThetaResolution(18);<br />
  sphere->SetPhiResolution(18);<br />
<br />
  // map to graphics library<br />
  vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br />
  map->SetInput(sphere->GetOutput());<br />
<br />
  // actor coordinates geometry, properties, transformation<br />
  vtkActor *aSphere = vtkActor::New();<br />
  aSphere->SetMapper(map);<br />
  aSphere->GetProperty()->SetColor(0,0,1); // sphere color blue<br />
<br />
  // a renderer and render window<br />
  vtkRenderer *ren1 = vtkRenderer::New();<br />
  vtkRenderWindow *renWin = vtkRenderWindow::New();<br />
  renWin->AddRenderer(ren1);<br />
<br />
  // an interactor<br />
  vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<br />
  iren->SetRenderWindow(renWin);<br />
<br />
  // add the actor to the scene<br />
  ren1->AddActor(aSphere);<br />
  ren1->SetBackground(1,1,1); // Background color white<br />
<br />
  // render an image (lights and cameras are created automatically)<br />
  renWin->Render();<br />
<br />
  // begin mouse interaction<br />
   iren->Start();<br />
<br />
  // release memory and return<br />
  sphere->Delete();<br />
  map->Delete();<br />
  aSphere->Delete();<br />
  ren1->Delete();<br />
  renWin->Delete();<br />
  iren->Delete();<br />
  return EXIT_SUCCESS;<br />
} <br><br>----------------------------------------------<br />
Prasenjit Mondal<br />
Ph.D Student<br />
Dept. of Computer Science & Engineering<br />
IIT Kharagpur<br />
INDIA<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>