Re: [ROOT] MS Visual C++ error LNK2001: unresolved external symbol "...

From: Brandon Kohn (blkohn@hotmail.com)
Date: Wed Feb 27 2002 - 08:39:10 MET


Hi Marion

You need to open up the settings for your project and make sure that you include all the root libraries that you are using.  Also make sure you have the path to your root/lib set.  Some of the typical libraries you need may be:

libcore.lib, libcint.lib, libhist.lib, libtree.lib, libwin32.lib, libgui.lib, libgraf.lib

You can also set the path for the libraries by going to the link tab under settings and then setting the combo box to Input.  There is a field there for both additional libraries and additional lib paths.

Hope this helps. 

Another thing you will want to do it to minimize your root includes *.h in any of your header files.  Use forward declarations and pointers to classes wherever possible, and only include the headers in the imlementation files.

Brandon
  ----- Original Message ----- 
  From: Marian M. Liliac 
  To: roottalk@pcroot.cern.ch 
  Sent: Wednesday, February 27, 2002 5:59 AM
  Subject: [ROOT] MS Visual C++ error LNK2001: unresolved external symbol "...


  Hi ROOTers,

  I know that it is probably too much to post here twice a day about the same problem, but I hope I will be excused as a very beginner in ROOT.
  So far in the last two days and part of the nights I have learnt to do a lot of things using ROOT. Now, I am trying to learn using ROOT inside of a Visual C++ application.
  all the small examples that I've tried to build ended up on build with this error:

  error LNK2001: unresolved external symbol "...

  can someone give me a hint how to get rid of that ? Than you. Am I missing something ?

  have a nice day,
  Marian



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:43 MET