[GiNaC-devel] about adding new function

wangtielei(王铁磊) wangtielei at icst.pku.edu.cn
Thu Jul 6 17:34:01 CEST 2006


Hello everyone:
I am trying to add a new function which would be used for propositional reasoning.
I got some information in GiNaC’s tutorial, included the source file “inifcns.cpp” and
“inifcns.h” which are mentioned in tutorial.
Now, my question is how to compile the new files.
 
For example, the header file <xxx.h >
#include <ginac/ginac.h>
using namespace std;
namespace GiNaC {
/* a test function*/
DECLARE_FUNCTION_2P(myfcn)
}
#endif
 
and the source file <xxx.cxx>
#include "xxx.h"
#include "ginac.h"
namespace GiNaC {
REGISTER_FUNCTION(myfcn, dummy())
}
I don’t know the next step. Can you give me a whole process demo?
Please help me. Thank you very much. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cebix.net/pipermail/ginac-devel/attachments/20060706/9ca6c4a1/attachment.html


More information about the GiNaC-devel mailing list