Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2015-02-07
8
Medium Priority
?
609 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
8 Comments
 
LVL 35

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 35

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

618 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