From: KIRK, B. (JSC-E. (NASA) <ben...@na...> - 2005-06-27 13:30:33
|
I've never tried PETSc with real number support built with the C++ compilers. Since there is no C++ functionality in PETSc, it always struck me as odd to build it with the C++ compilers anyway (except, of course, to disallow any dangerous C constructs that C++ has removed). In any case, building newer PETSc releases with either C or C++ *should* work now. There was a long discussion with the PETSc developers about two years ago suggesting they 'extern "C"' all their API since it does not require name-mangling, which they now do. -Ben -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of John Peterson Sent: Sunday, June 26, 2005 9:34 AM To: Manav Bhatia Cc: lib...@li... Subject: [Libmesh-users] Petsc Manav Bhatia writes: > Hi, > Is it necessary that the Petsc library be built for C and not C++ > when for use with libmesh? Or either shouldl work fine? Either should work fine, I think if you want to use complex number support then you need to build petsc with c++ compilers, though I could be wrong. And of course be sure to use the *same* C++ compiler for both ;) -John ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Libmesh-users mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libmesh-users |