forum.alglib.net http://forum.alglib.net/ |
|
alglib namespace http://forum.alglib.net/viewtopic.php?f=2&t=513 |
Page 1 of 1 |
Author: | tinkerz [ Sun Jan 08, 2012 7:52 pm ] |
Post subject: | alglib namespace |
Hi, I am trying to alglib working with Ninja trader I am using the namespace Using alglib; And I have set the reference to the alglibnet.dll But I get the reference error when trying to compile "using a namespace directive can only be applied to namespaces 'alglib' is not a namespace" Does alglib not work in the same way as math.net? Am I Missing something? I managed to get math.net working with Ninjatrader and I assume algib can too, what am I missing? Tinkerz |
Author: | Sergey.Bochkanov [ Mon Jan 09, 2012 7:46 pm ] |
Post subject: | Re: alglib namespace |
Hello! No, alglib is not a namespace - it is a class, so you can't write "using alglib". So you have to always write alglib.functionname. Good news is that there is no nested classes within classes and so on, so you will have to prefix function names with alglib, but won't have to write something like alglib.class1.class2.onemoreclass.functionname :) |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |