[Solved] Installing root library in VS13


"#include <TCanvas>"
int main(){
 return 0;
}

This program is syntactically wrong. For some reason you have surrounded an entire #include statement with double quotes.

Have you tried:

#include "TCanvas.h"
int main(int argc, char **argv) {
    return 0;
}

Edit: Well, you edited your post (twice as I was typing this!), changing everything and now you’re essentially asking a different question… Let’s see if we figure out what’s going on.

You say that you set “Additional Include Directories= %ROOTSYS%\lib*.lib” but that’s just wrong. “Additional Include Directories” is a set of directories where files to be included (using #include) can be found. But LIB files are not included using #include so that would be wrong. And of course, the syntax you cite: “Additional Include Directories= %ROOTSYS%\lib*.lib” is just flat out wrong. Also wrong is the “Additional Dependencies = %ROOTSYS%\lib*.lib” part.

You cannot fix this issue by randomly typing things in random places, as you seem to be, and hoping it will work. The world doesn’t work that way.

You need to sit down and think about what you are trying to do, how your tools work, and how you can use them to do what you want/need to do.

Under your project settings go to Linker then under General, and set the Additional Library Directories entry. Please be sure to set it correctly: it must point to the directory where the library files that you want to link against are.

3

solved Installing root library in VS13