logo

Thread

logo
the fair gds editor

Introduction
Screenshots
License
Download
Userinterface
Function Index
White Papers
Community
Contact

Use your OpenID:

getopenID

mouse left
no help

Headers in Macro file

by Paul - 21 Jul 2009, 22:35 CEST



Can c++ header files such as:

#include<math.h>

be implemented in LayoutEditor macros?

by Juergen Thies - 22 Jul 2009, 8:03 CEST

Including files is possible. But there will be no access to external libraries, because the macro cannot be linked to it. So including header files will not work.

You can access math features though the class math. Example:

double d=math::sin(1.2345);

by Paul - 22 Jul 2009, 15:19 CEST

I am trying to use the rand() function which I believe resides in the stdlib. I have already tried

int X = cstdlib::rand();

and

int X = stdlib::rand();

How would I go about using the rand() function?

by Paul - 22 Jul 2009, 15:20 CEST

(neither of the above tries worked error : unknown identifier)

by Juergen Thies - 22 Jul 2009, 15:34 CEST

The current release does not support the rand() function. I will add it with the next release.


Please log in to post!