How compiling this component ?
23 May 2014 01:31 #47212
by gaston48
How compiling this component ? was created by gaston48
Please Log in or Create an account to join the conversation.
23 May 2014 13:53 #47227
by ArcEye
Replied by ArcEye on topic How compiling this component ?
Hi
There is no terminating semicolon after PI
Suspect that is it, parse routine not finding line termination to work on.
regards
FUNCTION(_) { out = atan2 (in0,in1) * 180 / PI }
There is no terminating semicolon after PI
Suspect that is it, parse routine not finding line termination to work on.
regards
Please Log in or Create an account to join the conversation.
23 May 2014 15:04 #47232
by gaston48
Replied by gaston48 on topic How compiling this component ?
Hello ArcEye
thank you for your answer
Yes sorry
but after correcting the problem is the same.
same post after "$ comp atanxy.comp" ??
thank you for your answer
Yes sorry
but after correcting the problem is the same.
same post after "$ comp atanxy.comp" ??
Please Log in or Create an account to join the conversation.
23 May 2014 15:13 #47233
by ArcEye
Replied by ArcEye on topic How compiling this component ?
Hi
I think it is just a case of the python parser not being as good at resolving obfusticated C as cpp
This seems to compile fine
regards
I think it is just a case of the python parser not being as good at resolving obfusticated C as cpp
This seems to compile fine
component atanxy;
pin out float out;
pin in float in0;
pin in float in1;
function _;
license "GPL";
;;
#include <rtapi_math.h>
#define PI 3.141592653589
FUNCTION(_)
{
out = (atan2 (in0,in1) * (180 / PI));
}
regards
Please Log in or Create an account to join the conversation.
23 May 2014 15:42 #47237
by gaston48
Replied by gaston48 on topic How compiling this component ?
Perfect thank you.
This is a precaution I take with Pascal but I do not know C + +
and I did not dare ...
This is a precaution I take with Pascal but I do not know C + +
and I did not dare ...
Please Log in or Create an account to join the conversation.
23 May 2014 15:58 #47240
by gaston48
Replied by gaston48 on topic How compiling this component ?
Oops, no, the problem is the same ?
I compile another fichier.comp and it works well ?
I compile another fichier.comp and it works well ?
Please Log in or Create an account to join the conversation.
23 May 2014 16:02 #47241
by ArcEye
Replied by ArcEye on topic How compiling this component ?
I am not using the same version of comp probably and I did not install the component, just built it.
Try comp --compile atanxy.comp
and be sure that the new one is in the path not the old one
regards
Try comp --compile atanxy.comp
and be sure that the new one is in the path not the old one
regards
Please Log in or Create an account to join the conversation.
23 May 2014 16:34 #47243
by gaston48
Replied by gaston48 on topic How compiling this component ?
Thank you for your patience
with my comp :
sincos.comp works well
atanxy.comp no ?
with my comp :
sincos.comp works well
atanxy.comp no ?
Please Log in or Create an account to join the conversation.
23 May 2014 16:42 #47244
by ArcEye
Replied by ArcEye on topic How compiling this component ?
Hi
I am working on another partition and cannot test just yet
I did notice however that the atanxy.comp is littered with ^M charactors, which I suspect means it has been edited under windows
That in its own can produce an error
Try cutting and pasting the version I posted into gedit and then compile it
regards
I am working on another partition and cannot test just yet
I did notice however that the atanxy.comp is littered with ^M charactors, which I suspect means it has been edited under windows
That in its own can produce an error
Try cutting and pasting the version I posted into gedit and then compile it
regards
Please Log in or Create an account to join the conversation.
23 May 2014 17:13 #47245
by gaston48
Replied by gaston48 on topic How compiling this component ?
Yes you're right, this is the problem!
But I wrote my atanxy.comp and my sincos.comp in gedit ??
and in gedit, my atanxy.comp and yours are identhique
(I wonder if I is not a keyboard problem)
But I wrote my atanxy.comp and my sincos.comp in gedit ??
and in gedit, my atanxy.comp and yours are identhique
(I wonder if I is not a keyboard problem)
Please Log in or Create an account to join the conversation.
Time to create page: 0.192 seconds