forum.alglib.net http://forum.alglib.net/ |
|
compiling alglib cpp files in c-free 4.0 IDE http://forum.alglib.net/viewtopic.php?f=2&t=1049 |
Page 1 of 1 |
Author: | karan_kumar [ Thu Nov 07, 2013 6:47 am ] |
Post subject: | compiling alglib cpp files in c-free 4.0 IDE |
HI guys, I am using c-free 4.0 IDE and trying to compile .cpp files in cpp/src/. I am getting error when i complile these 3 files--> 1.) dataanalysis.cpp (3 errors and are all same): ERROR::no matching function for call to basic_string<char,string_char_traits<char>, __default_alloc_template<false,0> >::clear() ove 2.interpolation.cpp(1 error) same as above (line 7992) 3.alglibmisc.cpp( 1error) same as above line 480. all the above error are generated due to this function ---> "s_out.clear()"; PLease help.. Its really urgent.. If u want to try c-free 4.0(for debugging) u can use link "http://www.programarts.com/cfree_en/download.htm" (=7MB) (4.0 VERSION) |
Author: | Sergey.Bochkanov [ Thu Nov 07, 2013 10:57 am ] |
Post subject: | Re: compiling alglib cpp files in c-free 4.0 IDE |
What compiler you used? It complains about std::string.clear(), but this method is pretty standard and should be present in all modern standard C++ libraries. |
Author: | karan_kumar [ Sun Nov 10, 2013 5:15 pm ] |
Post subject: | Re: compiling alglib cpp files in c-free 4.0 IDE |
mingW2.95 compiler |
Author: | karan_kumar [ Sun Nov 10, 2013 5:43 pm ] |
Post subject: | Re: compiling alglib cpp files in c-free 4.0 IDE |
I also have another query..In c-free 4.0, I included only ap.cpp and the header file ap.h (just to learn about real_2d_array objects). But there is one last problem.. I have a double datatype array say a[2][2] and want to copy its contents to real_2d_array object say b. I took a double pointer (*p=NULL)and did p=b[0] so that I may store value in b via p and increment it by 1.. i.e *(p+0xi)+j=a[i][j]; but its not working. I tried simple equating b[0][0]=a[0][0] but when we execute, it says <filename>.exe has stopped working.. Any help is greatly appreciated.. Program---> #include<iostream> #include<conio.h> #include<stdio.h> #include<math.h> #include "ap.cpp" #include<ap.h> int main() { using namespace::alglib; real_2d_array b; double a[2][2]={{0.99,0.99},{1.00,1.00}}; b[0][0]=a[0][0]; cout<<b[0][0]; getch(); return(0); } |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |