Solved

first program with vtk + C++ in visual studio 2013

Posted on 2015-02-07
8
393 Views
Last Modified: 2015-05-20
I am new on vtk, I install the tool in visual studio 2013 using cMake to configure and generate the source code, I run the example included and it worked but when I run an example from the internet and build it I got this error:
error LNK1104: cannot open file 'vtkCommon.lib'

and when go to the lib directory there is no vtkCommon.lib actually but the list start with:

vtkCommonColor-6.1.lib
vtkCommonComputationalGeometry-6.1.lib
vtkCommonCore-6.1.lib
vtkCommonDataModel-6.1.lib
vtkCommonExecutionModel-6.1.lib
vtkCommonMisc-6.1.lib
vtkCommonSystem-6.1.lib
0
Comment
Question by:Aaeshah
  • 2
8 Comments
 
LVL 33

Expert Comment

by:sarabande
ID: 40598875
error LNK1104: cannot open file 'vtkCommon.lib'
you can try to remove vtkCommon.lib from makefile. but probably the linker then would complain about missing symbols. if the symbol could be found in one of the other vtk libraries you may add this library instead. but it is only a rare chance to get it working by that.


when go to the lib directory there is no vtkCommon.lib
you may look for a makefile or visual studio project that builds vtkCommon.lib by using the vc compiler and ms linker.

the libs you got from the visual studio tool rarely can be used as a substitute as they may contain a different version or have some specials to work in the visual studio environment. I would assume that even if you have experiences with makefiles it is a big job to make it work for your internet sample. it should be easier to get or build the needed library.

Sara
0
 
LVL 33

Expert Comment

by:sarabande
ID: 40637945
Aaeshah, experts at ee are volunteers. because of that they do not like to get a c grade for their comments. a c actually is the worst grade you can give and is not appropiate for an answer which didn't help but but where you have made no efforts to get a better response. if there are no comments which solved the problem, it actually is your part to tell what you have tried such that the experts participating have a chance to help you with your issue. if you found the solution yourself you may post it here and then accept your own comment with 0 points. if you don't want to proceed on the issue anymore, then you can post a request for deletion. all this is better than closing the question with accepting any comment and run it down by giving a c grade.

Sara

p. s.
below your original post is  a 'Request Attention' link where you could ask for reopening the question in order to make a better closing of the question.
0
 

Accepted Solution

by:
Aaeshah earned 0 total points
ID: 40638189
I manage to solve the problem by change the output directory to the bin/debug file in vtk and it works just fine.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java continue statement 10 114
Better understanding on C++ Class serialization and formats 9 60
split53 challenge 7 78
Problem to open Excel file 15 95
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now