O , 2011-10-18 15:57 -0700, Craig A. James rakstīja:
> On 10/18/11 3:30 PM, My Th wrote:
> > O , 2011-10-18 22:40 +0100, Chris Morley rakstīja:
> >> On 18/10/2011 20:18, My Th wrote:
> >>> Hi!
> >>>
> >>> I have problems with your version of the patch. I'm using Gentoo Linux
> >>> with gcc 4.6.1.
> >>>
> >>> Running the test program I get this:
> >>> Try finding a forcefield in blank state..
> >>> terminate called after throwing an instance of
> >>> '__gnu_cxx::recursive_init_error'
> >>>     what():  std::exception
> >>> Aborted
> >>>
> >> It seems Visual C++ and gcc treat this differently...
> 
> In the past, I've found that gcc and g++ do NOT do the same things when
> it comes to linking.  If you have a pure C program, they are
> equivalent.  But when you mix C and C++, you have to use g++ to do the
> final linking step.  gcc doesn't understand C++ initialization.
> 
> Craig

I did use g++. My command to compile was:
$ obpath g++ -I../build_trunk/include -I../openbabel-git/include
-L../build_trunk/lib -lopenbabel test_ff_loading.cpp -o tff -ggdb

$ obpath ./tff 
Try finding a forcefield in blank state..
terminate called after throwing an instance of
'__gnu_cxx::recursive_init_error'
  what():  std::exception
Aborted


Reinis


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to