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`

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: (996 Bytes)


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

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.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.