Hi Bernd, Add libGpad.lib We recommend the small utility root-config in $ROOTSYS/bin do root-config --glibs to see the list of recommended graphics libraries Rene Brun On Mon, 10 Nov 2003, Bernd Reinhold wrote: > Hi! > > Can you tell me, which libraries I have to link to, if I want to use TCanvas > outside Cint. > > I'm using VC++ 6.0, root 3.10/01, win2000. > > these are the project options in the link-section: (with them I can create a > TGraph-object and a root-file > but trying to create a TCanvas-object creates the error, that is appended.) > > libgui.lib libcore.lib libcint.lib libhist.lib libtree.lib libwin32gdk.lib > libgui.lib libgraf.lib > mysql++.lib > kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib > shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib > kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib > shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo > /subsystem:console /incremental:yes /pdb:"Debug/examples.pdb" /debug > /machine:I386 /out:"Debug/examples.exe" /pdbtype:sept /libpath:"c:/program > files/root/lib" /libpath:"c:/temp/mysqlpp/lib" > > Is there somewhere a kind of table, which tells me, which libraries to > include, if I want to create certain objects. > Something like: > TGraph requires libgraf.lib and ... and ... > TCanvas requires ... > ... > > Thanks, Bernd. > > > --------------------Configuration: examples - Win32 > Debug-------------------- > Linking... > simple1.obj : error LNK2001: unresolved external symbol "public: __thiscall > TCanvas::TCanvas(char const *,char const *,int,int,int,int)" > (??0TCanvas@@QAE@PBD0HHHH@Z) > Debug/examples.exe : fatal error LNK1120: 1 unresolved externals > Error executing link.exe. > > examples.exe - 2 error(s), 0 warning(s) >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET