Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: calling singular from c/c++
PostPosted: Mon Jun 12, 2006 2:57 pm 
Is it possible to call Singular from C/C++?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 27, 2006 6:46 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
As Singular is a C++ program, it is possible.
On the other side, Singular was not designed as library
- it requires its own memory manager (which may interfere with others),
it requires that its initialization is run (which is in main() and not
in seperate routines).
To sum it up: yes, it is possible, but requires quite a lot of work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 01, 2009 11:40 am 

Joined: Fri May 01, 2009 11:31 am
Posts: 1
Now, after 3 years, have something changed?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Singular as a C/C++ library
PostPosted: Thu May 21, 2009 2:10 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
It is not Singulars main goal to create a C++ library,
but, yes, it is possible, and some programs use Singular as a C++ library.

Once you have build a stand alone Singular, the Makefile in ./Singular
provides the targets libsingular.a and libsingular.so
which contain all Singular functions. (The problems with coexisting
memory managers have been solved).
Rudimentary documentation of the internals can be found at
http://www.mathematik.uni-kl.de/ftp/pub ... natomy.tgz


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:59 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group