On 03/27/2014 09:26 PM, Michael Miller wrote: [...]
test3.cpp: In function ‘int main()’: test3.cpp:14:14: note: synthesized method ‘parameter::parameter()’ first required here parameter param; ======================
What is the compiler trying to tell me?
The compiler is complaining about a missing constructor. (This is on purpose: rings and polynomials are reference counted and centrally managed in order to avoid two mathematically equal objects within one program.) Use references to polynomials rings if you want to pass them around. For instance, you could declare your structure like this: struct parameter { cl_N z0; cl_UP& p; } and, once you have created and finalized your cl_UP_N object q, create a parameter object like this: parameter param = {1, q}; hope this helps -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>