On Mon, Nov 9, 2009 at 11:36 AM, Burcin Erocal <bur...@erocal.org> wrote:
>
> On Mon, 9 Nov 2009 09:06:54 -0800 (PST)
> Tom <toooooooo...@gmail.com> wrote:
>
>>
>> > If you want to take a look at the pynac source code, go to your sage
>> > installation and do:
>> >
>> > ./sage -f -s spkg/standard/pynac-0.1.9.p0.spkg
>> >
>> > cd spkg/build/pynac-0.1.9/src/ginac
>> >
>> I did this, but with
>>
>> cd spkg/build/pynac-0.1.9.p0/src/ginac
>>
>> instead.
>>
>> I'm trying to write a small class to test out pynac functions. I
>> copied and pasted the first program from
>>
>> http://www.ginac.de/tutorial/How-to-use-it-from-within-C_002b_002b.html#How-to-use-it-from-within-C_002b_002b
>>
>> into a file called main.cpp, and ran in the ginac directory:
>>
>> g++ main.cpp -o main -lcln -lginac
>>
>> and got a lot of compiler errors. Are the commands different since
>> this is pynac, and the documentation is for ginac?
>
> Pynac doesn't depend on cln, and the library is named pynac not ginac.
> You will probably also need to add the python includes. Make sure that
> you do this in the Sage shell (by using "./sage -sh"). Maybe this will
> work:
>
> g++ main.cpp -o main -lpynac -I$SAGE_LOCAL/include/python2.6
>

It's my opinion that there is no possible way that the above can ever work.
Not only does Pynac depend on Python and not cln, it depends on an imported
Sage session, which has to be properly initialized.

The way to develop with pynac is to modify pynac source, do make install, then
use the resulting changed library from within Sage.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to