[CLN-list] how to read string numbers at runtime into cl_I type

Joshua Friedman crowneagle at gmail.com
Mon Jul 19 02:01:38 CEST 2010


Bruno
In the manual it says:  cl_I order_of_rubiks_cube_group =
"43252003274489856000";
so I declared a string, S, read it from a file, and then I said

cl_I = S;
I also tried cl_I = cl_I(S),

but it did not work. I assume because the string is dynamic there is a
problem. I could not find the correct function or class constructor that
takes a string.

Here is the error:
In function ‘int main(int, char**)’:
e.cc:75: error: conversion from ‘std::string’ to non-scalar type ‘cln::cl_I’
requested
make: *** [e.o] Error








On Sun, Jul 18, 2010 at 6:26 PM, Bruno Haible <bruno at clisp.org> wrote:

> Hi Joshua,
>
> > I couldn't convert from a string to any of the types (cl_R, or cl_I).
>
> Which of the conversion functions listed in the manual, section
> "Input functions" [1], did you try, and how?
>
> Bruno
>
> [1] http://www.ginac.de/CLN/cln_5.html#SEC46
>



-- 
Joshua Friedman PhD
CrownEagle at gmail.com
http://www.math.sunysb.edu/~joshua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/cln-list/attachments/20100718/79a6ed21/attachment.htm>


More information about the CLN-list mailing list