[Fxplot-users] Re: Problem using FXPlot2D
Status: Beta
Brought to you by:
rpseng
From: Rafael de P. S. <ra...@rp...> - 2006-01-29 23:25:40
|
Hi Jean, Regargind the mail list, I think you sent the message for the wrong address, the correct is fxp...@li.... About your questions, which version of FOX are you using? Currently only version 1.4.X is supported, appears that in new versions exists() and extension() have moved from the FXFile. I think the new version is FX::FXStat::exists() and FX::FXFileAssoc::extension(). Some time ago I have compiled it with VC7 with no problem. Sory for the question, but have you included the FXPlot2D.h header in your file? Please take a look at the file curves.cpp and check if you could generate an executable for it. With the best wishes, Rafael. Jean-Dominique Barnichon escreveu: > I send it again as ther was a problem at the sf mailman > > Hello Rafael, > > Remember me..., we had some email exchange mid-december on the Fox > list. I was (and i still am) looking for a charting library to do > basic 2D plots. > > I now came to a point in my project where i do need 2D chart, so now > it's time for me to get hands on. > So, i 've downloaded file FXPlot-0.2.0.zip from sourceforge, and build > it as a static library. > I'm developing under VC++7.0 with Visual Studio, so i did not use what > you recommend on sf web site (i.e. using scons). Instead, i added a > project to Fox, added the .h and .cpp files contained in the zip file, > and compiled it as a static library. > Just to mention, the compiler complained at two points in the file > FXPlotBase.cpp : > Bug 1) > apparently, neither "extension" nor "exists" are method belonging to > class FXfile, so > at line 48, i replaced > FXString ext=FXFile::extension(file); > by > FXString ext="jpg"; > and i commented lines 106 to 109 (test on file existence): > /* if(FXFile::exists(file)){ > > if(MBOX_CLICKED_NO==FXMessageBox::question(this,MBOX_YES_NO,"Overwrite > File","Overwrite existing file: %s?",file.text())) > return 1; > }*/ > > Having done that, i obtained the lib file > > Now, i'm trying to use your lib in an example from Fox (obviously > after setting correct path for lib and include). > So, i try to create a pointer to FXPlot2D with the line : > FXPlot2D *2DChart; > This line leads to a compiler error syntax error : insufficient suffix > number > c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'incorrect > suffix number ' > c:\Fox\FxPir3D\MyFile.h(150) : error C2059: syntax error : 'constant' > c:\Fox\FxPir3D\MyFile.h(150) : error C2238: unexpected "jetons" before > ';' > > Any idea? > Btw, have you already compiled FXPlot under VC7.0? > > Thanks for you help. > Jean-Do > |