[vtkusers] A problem for the vtk compile warning

K.P.TUNG ktung at doc.ic.ac.uk
Sun Apr 12 19:56:20 EDT 2009


Hi everyone,
When I compile my vtk code,
the compilier shows
"LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other
libs; use /NODEFAULTLIB:library".
After this msg, I cant get any execute file.
I've followed possible methods from Internet to solve this, but these
methods arenot working.

My working environment is
--
WinXP SP3, VC2005, vtk5.2
--
My code is below
--
#include <vtkActor.h>
using namespace std;
int main()
{
    vtkActor* actor=vtkActor::New();
    cout<<"hello";
    return 0;
}
---

Does anyone can show me how to fix this problem?



Kind Regards,

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090413/980b1af7/attachment.htm>


More information about the vtkusers mailing list