Dear Luigi,

The best idea is to ask ROOT which compiler was used to compile it. So the 
compilation commands would be something like:

`root-config --cxx` -c -o bla.o bla.cxx `root-config --cflags`
`root-config --ld` -o bla bla.o `root-config --glibs`

This should make your code'd build reasonably robust against ROOT compiled in 
different ways.

Cheers,
                Attila

On 10 Feb 2014, at 18:19, Luigi Zanotti <luigi.zano...@mib.infn.it> wrote:

> Thanks so much!
>            Luigi Zanotti
> -------------------
> Prof. Luigi Ernesto Zanotti
> 
> Physics Department "G. Occhialini"
> University of Milano Bicocca
> 
> Piazza della Scienza 3. 20126 Milano Italy
> Tel. +39 02 6448 2460
> E-Mail: luigi.zano...@mib.infn.it
> -------------------
> 
> Il giorno 10 Feb 2014, alle ore 18:09, Alexander Hansen 
> <alexanderk.han...@gmail.com> ha scritto:
> 
>> On 2/10/14 8:30 AM, Luigi Ernesto Zanotti wrote:
>>> Hello,
>>> On compiling with c++-4 a source containing (fink) root codes I get tis
>>> list of errors:
>>> 
>>> #/sw/bin/c++-4 -o HST-Cd HST-Cd.cpp `root-config --glibs --cflags`
>>> c++-4: error: unrecognized command line option '-stdlib=libc++'
>>> c++-4: error: unrecognized command line option '-stdlib=libc++'
>>> #
>>> 
>>> Has anybody an idea of what is happening?
>>> Thanks in advance,
>>>            Luigi Zanotti
>>> 
>>> --
>>> 
>>> Prof. Luigi E. Zanotti
>>> 
>>> Physics Department "G. Occhialini"
>>> University of Milano-Bicocca  & INFN
>>> Piazza della Scienza 3 - 20126 Milano Italy
>>> 
>>> Tel. +39 02 6448 2413
>>> Cell.: +39 349 0997239
>>> e-mailluigi.zano...@mib.infn.it
>> 
>> I believe our gcc48 package doesn't have libc++ support, as indicated by the 
>> message.  My best recommendation for you at this point would be to build 
>> your sources using the Xcode clang compiler instead, if possible.
>> 
>> Manipulating the `root-config --glibs --cflags` output to get rid of the 
>> '-stdlib=libc++' might work, too, or you might wind up with undefined 
>> symbols or some other issue--mixing libc++ and libstdc++ (from Fink's c++-4) 
>> builds is problematic at best.
>> 
>> -- 
>> Alexander Hansen, Ph.D.
>> Fink User Liaison
>> My package updates: http://finkakh.wordpress.com/
> 
> ------------------------------------------------------------------------------
> Android&trade; apps run on BlackBerry&reg;10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience.  Start now.
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
> _______________________________________________
> Fink-users mailing list
> Fink-users@lists.sourceforge.net
> List archive:
> http://news.gmane.org/gmane.os.macosx.fink.user
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-users

-----------------------------------------------------
 Attila Krasznahorkay  attila.krasznahor...@cern.ch
 CERN PH-ADP-OS           Phone: +41-22-76 71180
 The ATLAS Collaboration     Room: 40/3-D06
-----------------------------------------------------


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to