Probleme of making standalone application with root library

Dear Rooters,

I would like to make a standalone app (which uses Root syntax) on window. However, when I try to compile, I get the following errors:

D:\Dropbox\Espace de travail\01 - NeutronDose_Thiem\example> g++  `root-config --cflags --glibs`  ex.cc

g++: error:  `root-config: No such file or directory g++: error: unrecognized command line option '--cflags' g++: error: unrecognized command line option '--glibs` ’

I used root 5.34 on windows 7.

_ROOT Version:5.34
_Platform: Windows 7
_Compiler: g++ex.cc (996 Bytes)


It’s

g++ `root-config --cflags --glibs` -o ex ex.cc

This uses command substitution which is a feature of Unix shells.

The way to do this using Visual C++ (which is the compiler you should be using on Windows) is likely very different.

Dear Beojan,

Do you know any material that presents a method for Window?

Thank you so much,

Your best option is probably going to be using CMake to build your code.