Search found 24 matches

by TSib
Wed Jan 11, 2017 1:54 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets compilation errors with gcc 5.3
Replies: 14
Views: 1611

Re: wxWidgets compilation errors with gcc 5.3

Unfortunately, I was not able to download the version 4.9.3 of GCC. Actually, I have no problem when I build Boost library with GCC 5.3.0. The problem occurs only with wxWidgets. :cry: What can I do ?

ST
by TSib
Wed Jan 11, 2017 12:41 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets compilation errors with gcc 5.3
Replies: 14
Views: 1611

Re: wxWidgets compilation errors with gcc 5.3

How can I get a previous version of GCC (e.g 4.9.3) using MinGW installation manager ? Only GCC 5.3.0 is availble with that application.

ST
by TSib
Wed Jan 11, 2017 11:09 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets compilation errors with gcc 5.3
Replies: 14
Views: 1611

Re: wxWidgets compilation errors with gcc 5.3

Hi, Actually these issues occured when I upgraded GCC using MinGW installation manager. Before, I used GCC 4.9.3 which was compatible with wxWidgets 3.1.0 (since I built wx. with that version) . So I think that to resolve these issues, I will donwload GCC 4.9.3 and then rebuild wxWidgets library. be...
by TSib
Wed Jan 11, 2017 9:48 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets compilation errors with gcc 5.3
Replies: 14
Views: 1611

Re: wxWidgets compilation errors with gcc 5.3

Hi PB, I have similar issues. They figure out issues by modifying the file C:\wxWidgets-3.0.2\include\wx\wxcrtbase.h (i.e. by removing the following code wxDECL_FOR_STRICT_MINGW32(int, _stricmp, (const char*, const char*)) wxDECL_FOR_STRICT_MINGW32(int, _strnicmp, (const char*, const char*, size_t))...
by TSib
Tue Jan 10, 2017 4:33 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets compilation errors with gcc 5.3
Replies: 14
Views: 1611

Re: wxWidgets compilation errors with gcc 5.3

Hi Doublemax, I've added the command line as you suggested like that mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 USE_OPENGL=1 USE_GDIPLUS=1 BUILD=release CXXFLAGS="-std=gnu++11 -fno-keep-inline-dllexport" Unfortunately, I've got the same errors. It seems that the problem comes from the version o...
by TSib
Tue Jan 10, 2017 3:09 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets compilation errors with gcc 5.3
Replies: 14
Views: 1611

Re: wxWidgets compilation errors with gcc 5.3

Previously, I used GCC 4.9 and I am working on Windows

ST
by TSib
Tue Jan 10, 2017 2:42 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets compilation errors with gcc 5.3
Replies: 14
Views: 1611

wxWidgets compilation errors with gcc 5.3

Hi, I am working on GUI project where I use wxWidgets in Eclipse CDT. Recently, I upgrade GCC to version 5.3.0. Then, when I compile wxWidgets 3.1.0 library, I've got some errors like that : g++ -c -o gcc_mswuddll\basedll_any.o -g -O0 -mthreads -DHAVE_W32API_H -D__WXMSW __ -D_UNICODE -I..\..\lib\gcc...
by TSib
Mon Jan 09, 2017 3:32 pm
Forum: Compiler / Linking / IDE Related
Topic: How can I reliably associate an icon to application (exe) with wxWidgets mingw-gcc ?
Replies: 4
Views: 1710

Re: How can I reliably associate an icon to application (exe) with wxWidgets mingw-gcc ?

I finally resolve my problem. In fact, In Windows, wxWidgets requires an MS resource (.rc) file to be compiled along with the project. Then, the resource file should content something like: AppIcon ICON "wx/msw/std.ico" #include "wx/msw/wx.rc" In order to include the resource file in the binary you ...
by TSib
Fri Jan 06, 2017 10:51 am
Forum: Compiler / Linking / IDE Related
Topic: How can I reliably associate an icon to application (exe) with wxWidgets mingw-gcc ?
Replies: 4
Views: 1710

Re: How can I reliably associate an icon to application (exe) with wxWidgets mingw-gcc ?

Hi Doublemax,
thanks you for your answer. Actually I know how to create a resource file. But I don't know how to use it in my project. Unfortunately, I don't understand the explanation given in your link. Can you give more explanation? Thanks you in advance.

best regards,

ST
by TSib
Thu Jan 05, 2017 10:33 am
Forum: Compiler / Linking / IDE Related
Topic: How can I reliably associate an icon to application (exe) with wxWidgets mingw-gcc ?
Replies: 4
Views: 1710

How can I reliably associate an icon to application (exe) with wxWidgets mingw-gcc ?

Hi, I am developing an application using WxWidgets on Eclipse CDT with Mingw-Gcc. Now, I want to associate an icon to my application. To do so, I insert the folowing code : SetIcon( wxIcon(wxT("..\\resource\\logo.ico"), wxBITMAP_TYPE_ICO) ); with allows adding the icon to the frame. But I want also ...
by TSib
Fri Sep 23, 2016 11:03 am
Forum: The Code Dump
Topic: Bitmap creation failed in wxFreeChart
Replies: 5
Views: 1849

Re: Bitmap creation failed in wxFreeChart

I've downloaded wxFreechart from "https://github.com/iwbnwif/wxFreeChart". So I've the same code that you wrote. :?

S.T.
by TSib
Fri Sep 23, 2016 8:30 am
Forum: The Code Dump
Topic: Bitmap creation failed in wxFreeChart
Replies: 5
Views: 1849

Re: Bitmap creation failed in wxFreeChart

Thanks you for your answer. In fact I've already seen that topic. I've downloaded the recent version of wxFreeChart which already contains the solution. Unfortunately, I still have the same warning but now in the function " void AxisPlot::DrawDataAreaBackground(wxDC &dc, wxRect rc) ". Please help me...
by TSib
Fri Sep 23, 2016 7:57 am
Forum: The Code Dump
Topic: Bitmap creation failed in wxFreeChart
Replies: 5
Views: 1849

Bitmap creation failed in wxFreeChart

Hi, I use wxFreeChart to display graph. Recently, I've got a warning with the following message : " warning: ../../src/msw/bitmap.cpp(741): assert ""w > 0 && h > 0"" failed in DoCreate(): invalid bitmap size ". I found that this warning comes from the following function : " void AxisPlot::DrawDataAr...
by TSib
Wed Jun 29, 2016 1:40 pm
Forum: wxCode
Topic: How can I add a label to a point (x, y) wxFreechart?
Replies: 0
Views: 1621

How can I add a label to a point (x, y) wxFreechart?

Hi,
I am a new wxFreeChart user. I want to add a label to a given point on the graph. How can I do that?

Thanks you in advance

best regards,

S.T.
by TSib
Fri Jun 24, 2016 9:15 am
Forum: C++ Development
Topic: How to use gnuPlot in wxWidget project
Replies: 15
Views: 8354

Re: How to use gnuPlot in wxWidget project

is it also possible to zoom plot?