StyleFile in compiled code

Hi all,
I gRoot->LoadMacro the AtlasStyle.C and AtlasUtils.C in my rootlogon.C and call SetAtlasStyle() which works fine as long as I use CINT.
Now I want to compile some code which is working fine as well, except that the style files doesn’t have any effect.
In order to check that the rootlogon file get actually loaded I included some printf which are printed if I call ‘root -l’ but not in the compiled code.

I was expecting that rootlogon.C is always called when root is used.
It would be great if someone could give me some advice on how to use the style file in C++ compiled code.

Thanks

Christian

Any ideas?
Thanks for your help.
Christian

Hi,

[quote]In order to check that the rootlogon file get actually loaded I included some printf which are printed if I call ‘root -l’ but not in the compiled code.
[/quote]Most likely your main function does not create/initialize the necessary object. In order to request the automatic loading of the rootlogon.C file, you must create a TRint object. See $ROOTSYS/main/src/rmain.cxx.

Cheers,
Philippe.