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)
beojan
2
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,
beojan
4
Your best option is probably going to be using CMake to build your code.
system
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.