forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 8:27 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: compiling alglib cpp files in c-free 4.0 IDE
PostPosted: Thu Nov 07, 2013 6:47 am 
Offline

Joined: Wed Nov 06, 2013 6:26 pm
Posts: 3
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)


Top
 Profile  
 
 Post subject: Re: compiling alglib cpp files in c-free 4.0 IDE
PostPosted: Thu Nov 07, 2013 10:57 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
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.


Top
 Profile  
 
 Post subject: Re: compiling alglib cpp files in c-free 4.0 IDE
PostPosted: Sun Nov 10, 2013 5:15 pm 
Offline

Joined: Wed Nov 06, 2013 6:26 pm
Posts: 3
mingW2.95 compiler


Top
 Profile  
 
 Post subject: Re: compiling alglib cpp files in c-free 4.0 IDE
PostPosted: Sun Nov 10, 2013 5:43 pm 
Offline

Joined: Wed Nov 06, 2013 6:26 pm
Posts: 3
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);
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group