Author Topic: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData  (Read 8250 times)

Offline ivan braga

  • Multiple posting newcomer
  • *
  • Posts: 15
not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« on: December 12, 2018, 10:04:30 pm »
Hello everyone, I hope that here is the right place for this topic.

I'm trying to use code::blocks with wxwidgets to create an IDE in drag-and-drop style, using the "LittlevGL" "https://littlevgl.com/" which is fully written c library.

My first steps were:

Step 1 - I created a default program using the CB wizard, so far no problem, I added a simple button using the wxSmith wizard so I compiled and executed without any problem.

Step 2 - I added the lvgl folder, it can be downloaded at "https://github.com/littlevgl/pc_simulator", which is used to create screens using SDL with eclipse.

At this point the problems began.

Code
-------------- Clean: Debug in pjt_lvg_12122018_wx (compiler: GNU GCC Compiler)---------------

Cleaned "pjt_lvg_12122018_wx - Debug"

-------------- Build: Debug in pjt_lvg_12122018_wx (compiler: GNU GCC Compiler)---------------

g++ -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/wx_pch.h -o wx_pch.h.gch/Debug_wx_pch_h_gch
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_core/lv_group.c -o obj/Debug/lvgl/lv_core/lv_group.o
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_core/lv_indev.c -o obj/Debug/lvgl/lv_core/lv_indev.o
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_core/lv_obj.c -o obj/Debug/lvgl/lv_core/lv_obj.o
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_core/lv_refr.c -o obj/Debug/lvgl/lv_core/lv_refr.o
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_core/lv_style.c -o obj/Debug/lvgl/lv_core/lv_style.o
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_core/lv_vdb.c -o obj/Debug/lvgl/lv_core/lv_vdb.o
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_draw/lv_draw.c -o obj/Debug/lvgl/lv_draw/lv_draw.o
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_draw/lv_draw_arc.c -o obj/Debug/lvgl/lv_draw/lv_draw_arc.o
cc1: warning: ./wx_pch.h.gch/Debug_wx_pch_h_gch: not for GNU C11
In file included from /usr/include/wx-3.0/wx/strconv.h:17:0,
                 from /usr/include/wx-3.0/wx/strvararg.h:20,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/buffer.h:19:1: error: unknown type name ‘class’
 class WXDLLIMPEXP_FWD_BASE wxCStrData
 ^~~~~
/usr/include/wx-3.0/wx/buffer.h:27:1: error: unknown type name ‘namespace’; did you mean ‘isspace’?
 namespace wxPrivate
 ^~~~~~~~~
 isspace
/usr/include/wx-3.0/wx/buffer.h:28:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/usr/include/wx-3.0/wx/buffer.h:65:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 template <typename T>
          ^
/usr/include/wx-3.0/wx/buffer.h:241:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 typedef wxScopedCharTypeBuffer<char> wxScopedCharBuffer;
                               ^
/usr/include/wx-3.0/wx/buffer.h:242:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 typedef wxScopedCharTypeBuffer<wchar_t> wxScopedWCharBuffer;
                               ^
/usr/include/wx-3.0/wx/buffer.h:246:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 template <typename T>
          ^
/usr/include/wx-3.0/wx/buffer.h:360:1: error: unknown type name ‘class’
 class wxCharBuffer : public wxCharTypeBuffer<char>
 ^~~~~
/usr/include/wx-3.0/wx/buffer.h:360:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class wxCharBuffer : public wxCharTypeBuffer<char>
                    ^
/usr/include/wx-3.0/wx/buffer.h:380:1: error: unknown type name ‘class’
 class wxWCharBuffer : public wxCharTypeBuffer<wchar_t>
 ^~~~~

.......
.......
.......
                 ^
/usr/include/wx-3.0/wx/strconv.h:606:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvLocal)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/defs.h:570:0,
                 from /usr/include/wx-3.0/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:613:30: error: unknown type name ‘wxMBConv’
Process terminated with status 1 (0 minute(s), 8 second(s))
 
Process terminated with status 1 (0 minute(s), 8 second(s))
 
Process terminated with status 1 (0 minute(s), 9 second(s))
 
Process terminated with status 1 (0 minute(s), 9 second(s))
 
Process terminated with status 1 (0 minute(s), 9 second(s))
 
Process terminated with status 1 (0 minute(s), 10 second(s))
 
Process terminated with status 1 (0 minute(s), 10 second(s))
 
Process terminated with status 1 (0 minute(s), 10 second(s))
50 error(s), 27 warning(s) (0 minute(s), 10 second(s))
 

I looked here in the forum and found only this reference "http://forums.codeblocks.org/index.php/topic,20086.msg137093.html#msg137093", with a similar problem.
However I could not replicate the solution, "project / target compiler options".

Could someone help me to understand this problem and how to solve it?

I see that other problems are on the way.

Thank you in advance.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #1 on: December 13, 2018, 12:55:59 am »
First of all: what do you want to do?
Use codeblocks to draw a UI for littlevgl? This won't work.... Codeblocks drawing plugin for UI is wxSmith and this is only for wxWidgets.

littlevgl uses SDL on PC as far as i can tell. So this has nothing to do with wxWidgets or wxSmith or codeblocks...

You and the guy from the link you provided have to really learn what  a library (SDL, wxWidgets) is, what a compiler is and what the difference between PC and embedded development is...

Simply adding files and folders somewhere won't help you. Not reading instruction won't also help. Ignoring build systems for your library is also a bad idea...

After the ranting and raving:
The first thing you should do is to explain EXACLTY what you want. (for ex. The Simulator of the littlevgl building in codeblocks on a PC)
Then you say EXACTLY EVERY step you have done... (for ex. 1) Open codeblocks 2) File->New->Project->console project .....)
Then you explain what the problem is and report the error. Use this as template: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Then we can start to help you... Without the top steps it is impossible to help and i am not willing to invest time in this...

PS.
Code
gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_core/lv_indev.c -o obj/Debug/lvgl/lv_core/lv_indev.o
and why the **** do you mix codeblocks source with littlevgl source? They have absolutely nothing to do with each other....
« Last Edit: December 13, 2018, 01:00:58 am by BlueHazzard »

Offline ivan braga

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #2 on: December 13, 2018, 04:35:42 am »
BlueHazzard.

I'm sorry for your bad mood and or how I asked my question at the beginning of the topic.
That being said, let's go to what I think you did not understand.
I try to explain the least, but with the utmost clarity, because English is not my native language.
I will not work with SDL, but rather within wxwidgets with its natural tools, eg "https://forums.wxwidgets.org/viewtopic.php?t=44866".

I could cite each of them, eg: classes like: wxImage, wxBitmap.

More returning the currency, the "****" is because the forum has a character limit, so it was denied paste all information.

If you can not understand, my intention is this "wxWidgets-xxx / samples / dragimag", before claiming the "xxx" in "wxWidgets" is version 3.0.4 or 3.1.1, "capeesh" = "understand" = " "understood".

Mahatma Gandhi:
Our reward lies in the effort, not the result. A total effort is a complete victory.

My apologies, and I'm sorry for your incomprehension.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #3 on: December 13, 2018, 04:47:43 am »
Please give the reasons for step 2
Quote
Step 2 - I added the lvgl folder, it can be downloaded at "https://github.com/littlevgl/pc_simulator", which is used to create screens using SDL with eclipse.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ivan braga

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #4 on: December 13, 2018, 05:51:15 am »
OK, let's go.

The creator of the library has used this feature to test their creation, ie library.

I already used this feature a lot, mainly as framebuffer emulation in linux, which is not the case in question since it uses SDL 2.0.

I think the most important point is that the "kathbeau" "http://forums.codeblocks.org/index.php/topic,20086.msg137093.html#msg137093" was using a library ".C" , of course respecting the wrapper, with the same problem.

Let me give you an example of what I did before step 1.
We'll call it step 0.
From what is described above.
I created a console c ++ example, added the same folder with the same files, and even initialized the library.

C ++ without wxwidgets

Code
int main ()
{
/ * Initialize LittlevGL * /

lv_init ();

cout << "I'm alive and running" << endl;
return 0;
}

Errors = 0 = Zero.

Any questions, please ask.
No questions, no answers, knowledge and understanding == 0.

Thank you very much in advance.

Offline ivan braga

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #5 on: December 13, 2018, 06:01:05 am »
Do not misunderstand, I will not use SDL, I will use native wxwidgets drawings.
Just to clarify.
« Last Edit: December 13, 2018, 06:14:02 am by ivan braga »

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #6 on: December 13, 2018, 07:34:17 am »
So what do you need LittlevGL for then? LittlevGL and wxWidgets are both GUI Toolkits, you need only one.

Offline ivan braga

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #7 on: December 13, 2018, 08:50:27 am »
Ok, Sodev.

I believe I have to take a different approach.

Come on, let me quote one more time. "https://forums.wxwidgets.org/viewtopic.php?t=44866".

As here is a forum, or a place to exchange information, especially in relation to C::B.
I'm pretty sure it's a mistake of my part that this is in the issue of configuring the C::B + WXWIDGETS environment.

I quoted sources, links, explained the way I did, how I performed, but no one tried to reproduce.

It does not cost much:

Quote
My first steps were:

Step 1 - I created a default program using the CB wizard, so far no problem, I added a simple button using the wxSmith wizard so I compiled and executed without any problem.

Step 2 - I added the lvgl folder, it can be downloaded at "https://github.com/littlevgl/pc_simulator", which is used to create screens using SDL with eclipse.

Think like this:

Forget the library I quoted above, but in some magical way and without using such a library, I got the same error already described, where I should look, what should I see.
If I were the absolute developer of wxwidgets, code :: blocks, LittlevGL would not be here asking what I missed, and where the error might be.
No one here has an obligation to answer, but if you answer and I do not just tell you, but ask a question as broad as the questioning.

"LittlevGL and wxWidgets are both GUI Toolkits"

Exactly, I want to join the whole facility given by CB + wxwidgets + wxSmith, integrating the part that no one even looked at from LittlevGL, replacing SDL with wxwidgets to create an IDE drag and drop.


Was there lack of clarity?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #8 on: December 13, 2018, 09:48:27 am »
The problem is that the options you've specified for wxWidgets contain C++ only option and the library you're building is C library.
Unfortuantely C::B doesn't know how to filter all flags, so as far as I can see the only way to compile this in C::B is to move the .c files in a separate target which is compiled to a static library and then you link it in the main executable.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #9 on: December 13, 2018, 12:18:41 pm »
Ok, i think we got this now:
1) You want to use wxWidgets as your emulated display
2) You want to use Codeblocks to draw this emulator, for adding buttons and so on
3) You use a wxImage to paint the LittlevGL output on
4) You would like to do this all in codeblocks
5) The problem is that LittlevGL is a c-library and wxWidgets is a c++ library and codeblocks mixes c and c++ compiler flags into one command line

This is the point where we are as far as i understand it.

I still have some questions:
Quote
PS.
Code: [Select]

gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -Wall -g -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvg_12122018_wx/lvgl/lv_core/lv_indev.c -o obj/Debug/lvgl/lv_core/lv_indev.o

and why the **** do you mix codeblocks source with littlevgl source? They have absolutely nothing to do with each other....

The solution that i would go (i have not tried it it builds for me without errors, but i do not know if it works):

1) Open codeblocks
2) Create a new wxWidgets project with File->New->Project
3) Copy the "lvgl" from the extracted archive downloaded form the lvgl site into your project folder
4) In Codeblocks create a new build target:
4.1) Project->Properties->Build targets->Add->libvgl
4.2) Change the output type and output filename:
4.2.1) Select the "liblvgl" from the right-> Type= "static library" to build a static library
4.2.2) Output filename: "lvgl\bin\libvgl.a"
4.2) Close the dialog with OK
5) Add the lvgl files to the project:
5.1) Project->Add files recursively->Select the copied "lvgl" folder and hit Ok
5.2) In the first pop up dialog "Multiple selection" hit simply OK
5.3) In the "select targets this file...." select ONLY "libvgl"
6) Prepare the target to get compiled:
6.1) Project->build options->select the project name on the left->Compiler settings->#defines-> Add "LV_CONF_INCLUDE_SIMPLE"
6.2) In the same dialog->Search directories->Add->"lvgl" (this is the folder where your "lv_conf.h" file should be
6.3) Select the "Debug" target from the left->Linker settings->Add->"lvgl\bin\libvgl.a"
6.4) Close dialog with OK
7) Build the whole thing:
7.1) From the drop down menu near the build symbol select "libvgl"-> Hit the build button. Should finish without error
7.2) Add
Code
#include "lvgl/lvgl.h"
and
Code
    lv_init ();
to the YOURPROJECTNAMEApp.cpp file
7.3) Select "Debug" from the drop down menu and hit the build button.
8) Enjoy the mighty build process

If any error occurs:
1) Describe your exact steps until this error
2) Post all information we request
3) Follow the guidelines in this link  http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Quote
I try to explain the least, but with the utmost clarity, because English is not my native language.
We are all non native english speakers so this makes communication even more difficult. Use easy words, Use step by step lists and so on...
« Last Edit: December 13, 2018, 12:25:02 pm by BlueHazzard »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #10 on: December 13, 2018, 12:23:04 pm »
Some comments to add:
1) You have to provide a "lv_conf.h" file by your own... Read the LittlevGL documentation for this
2) If you change something in your "lv_conf.h" file you will have to rebuild the target "libvgl" from the drop down menu
3) The step above can be automated, but first let us bring this to work
4) If this minimal example builds, the work of codeblocks is done. If you have questions how to draw on the wxImage from LittlevGL you better ask in the wxForum
5) If you have questions how to inser the wxImage in wxSmith this is again a question you can ask here..

hope this helped so far...

Offline ivan braga

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #11 on: December 13, 2018, 08:32:20 pm »
BlueHazzard.
First I want to thank you, for your time and patience in trying to help me.


How a picture is worth a thousand words.

Quote
1) Open codeblocks
2) Create a new wxWidgets project with File->New->Project







Quote
4) In Codeblocks create a new build target:
4.1) Project->Properties->Build targets->Add->libvgl
4.2) Change the output type and output filename:
4.2.1) Select the "liblvgl" from the right-> Type= "static library" to build a static library
4.2.2) Output filename: "lvgl\bin\libvgl.a"
4.2) Close the dialog with OK
5) Add the lvgl files to the project:
5.1) Project->Add files recursively->Select the copied "lvgl" folder and hit Ok
5.2) In the first pop up dialog "Multiple selection" hit simply OK
5.3) In the "select targets this file...." select ONLY "libvgl"





Quote
6) Prepare the target to get compiled:
6.1) Project->build options->select the project name on the left->Compiler settings->#defines-> Add "LV_CONF_INCLUDE_SIMPLE"
6.2) In the same dialog->Search directories->Add->"lvgl" (this is the folder where your "lv_conf.h" file should be
6.3) Select the "Debug" target from the left->Linker settings->Add->"lvgl\bin\libvgl.a"
6.4) Close dialog with OK





Quote
7) Build the whole thing:
7.1) From the drop down menu near the build symbol select "libvgl"-> Hit the build button. Should finish without error



After building, the same error.

Did I miss anything?


Code
-------------- Build: liblvgl in pjt_lvgl_wx (compiler: GNU GCC Compiler)---------------

gcc -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DLV_CONF_INCLUDE_SIMPLE -Ilvgl -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvgl_wx/lvgl/lv_core/lv_group.c -o .objs/lvgl/lv_core/lv_group.o
gcc -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DLV_CONF_INCLUDE_SIMPLE -Ilvgl -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvgl_wx/lvgl/lv_core/lv_indev.c -o .objs/lvgl/lv_core/lv_indev.o
gcc -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DLV_CONF_INCLUDE_SIMPLE -Ilvgl -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvgl_wx/lvgl/lv_core/lv_obj.c -o .objs/lvgl/lv_core/lv_obj.o
gcc -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DLV_CONF_INCLUDE_SIMPLE -Ilvgl -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvgl_wx/lvgl/lv_core/lv_refr.c -o .objs/lvgl/lv_core/lv_refr.o
gcc -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DLV_CONF_INCLUDE_SIMPLE -Ilvgl -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvgl_wx/lvgl/lv_core/lv_style.c -o .objs/lvgl/lv_core/lv_style.o
gcc -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DLV_CONF_INCLUDE_SIMPLE -Ilvgl -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvgl_wx/lvgl/lv_core/lv_vdb.c -o .objs/lvgl/lv_core/lv_vdb.o
gcc -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DLV_CONF_INCLUDE_SIMPLE -Ilvgl -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvgl_wx/lvgl/lv_draw/lv_draw.c -o .objs/lvgl/lv_draw/lv_draw.o
gcc -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DLV_CONF_INCLUDE_SIMPLE -Ilvgl -I/include/wx-3.0/wx -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/include/tinyxml -I/media/ilb/HD_DADOS/Documentos/Arquivos_Fontes/CB_WX_Source/cb/trunk/src/sdk/wxscintilla/include -c /media/ilb/HD_DADOS/Documentos/Projetos_CodeBlocks/pjt_lvgl_wx/lvgl/lv_draw/lv_draw_arc.c -o .objs/lvgl/lv_draw/lv_draw_arc.o
In file included from /usr/include/wx-3.0/wx/strconv.h:17:0,
                 from /usr/include/wx-3.0/wx/strvararg.h:20,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/buffer.h:19:1: error: unknown type name ‘class’
 class WXDLLIMPEXP_FWD_BASE wxCStrData;
 ^~~~~
/usr/include/wx-3.0/wx/buffer.h:27:1: error: unknown type name ‘namespace’; did you mean ‘isspace’?
 namespace wxPrivate
 ^~~~~~~~~
 isspace
/usr/include/wx-3.0/wx/buffer.h:28:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/usr/include/wx-3.0/wx/buffer.h:65:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 template <typename T>
          ^
/usr/include/wx-3.0/wx/buffer.h:241:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 typedef wxScopedCharTypeBuffer<char> wxScopedCharBuffer;
                               ^
/usr/include/wx-3.0/wx/buffer.h:242:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 typedef wxScopedCharTypeBuffer<wchar_t> wxScopedWCharBuffer;
                               ^
/usr/include/wx-3.0/wx/buffer.h:246:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 template <typename T>
          ^
/usr/include/wx-3.0/wx/buffer.h:360:1: error: unknown type name ‘class’
 class wxCharBuffer : public wxCharTypeBuffer<char>
 ^~~~~
/usr/include/wx-3.0/wx/buffer.h:360:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class wxCharBuffer : public wxCharTypeBuffer<char>
                    ^
/usr/include/wx-3.0/wx/buffer.h:380:1: error: unknown type name ‘class’
 class wxWCharBuffer : public wxCharTypeBuffer<wchar_t>
 ^~~~~
/usr/include/wx-3.0/wx/buffer.h:380:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class wxWCharBuffer : public wxCharTypeBuffer<wchar_t>
                     ^
/usr/include/wx-3.0/wx/buffer.h:398:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 template <typename T>
          ^
/usr/include/wx-3.0/wx/buffer.h:416:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 typedef wxWritableCharTypeBuffer<char> wxWritableCharBuffer;
                                 ^
/usr/include/wx-3.0/wx/buffer.h:417:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 typedef wxWritableCharTypeBuffer<wchar_t> wxWritableWCharBuffer;
                                 ^
/usr/include/wx-3.0/wx/buffer.h:446:1: error: unknown type name ‘class’
 class wxMemoryBufferData
 ^~~~~
/usr/include/wx-3.0/wx/buffer.h:447:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/usr/include/wx-3.0/wx/buffer.h:518:1: error: unknown type name ‘class’
 class wxMemoryBuffer
 ^~~~~
/usr/include/wx-3.0/wx/buffer.h:519:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
In file included from /usr/include/wx-3.0/wx/strvararg.h:20:0,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:29:1: error: unknown type name ‘class’
 class WXDLLIMPEXP_FWD_BASE wxString;
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:47:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConv
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:47:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:47:24: error: expected ‘,’ or ‘;’ before ‘wxMBConv’
 class WXDLLIMPEXP_BASE wxMBConv
                        ^~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:183:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvLibc : public wxMBConv
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:183:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:183:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvLibc’
 class WXDLLIMPEXP_BASE wxMBConvLibc : public wxMBConv
                        ^~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:205:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxConvBrokenFileNames : public wxMBConv
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:205:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:205:24: error: expected ‘,’ or ‘;’ before ‘wxConvBrokenFileNames’
 class WXDLLIMPEXP_BASE wxConvBrokenFileNames : public wxMBConv
                        ^~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:251:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvUTF7 : public wxMBConv
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:251:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:251:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvUTF7’
 class WXDLLIMPEXP_BASE wxMBConvUTF7 : public wxMBConv
                        ^~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:341:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvStrictUTF8 : public wxMBConv
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:341:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:341:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvStrictUTF8’
 class WXDLLIMPEXP_BASE wxMBConvStrictUTF8 : public wxMBConv
                        ^~~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:360:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvUTF8 : public wxMBConvStrictUTF8
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:360:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:360:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvUTF8’
 class WXDLLIMPEXP_BASE wxMBConvUTF8 : public wxMBConvStrictUTF8
                        ^~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:393:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvUTF16Base : public wxMBConv
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:393:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:393:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvUTF16Base’
 class WXDLLIMPEXP_BASE wxMBConvUTF16Base : public wxMBConv
                        ^~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:412:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvUTF16LE : public wxMBConvUTF16Base
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:412:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:412:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvUTF16LE’
 class WXDLLIMPEXP_BASE wxMBConvUTF16LE : public wxMBConvUTF16Base
                        ^~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:426:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvUTF16BE : public wxMBConvUTF16Base
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:426:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:426:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvUTF16BE’
 class WXDLLIMPEXP_BASE wxMBConvUTF16BE : public wxMBConvUTF16Base
                        ^~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:440:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvUTF32Base : public wxMBConv
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:440:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:440:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvUTF32Base’
 class WXDLLIMPEXP_BASE wxMBConvUTF32Base : public wxMBConv
                        ^~~~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:458:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvUTF32LE : public wxMBConvUTF32Base
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:458:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:458:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvUTF32LE’
 class WXDLLIMPEXP_BASE wxMBConvUTF32LE : public wxMBConvUTF32Base
                        ^~~~~~~~~~~~~~~
/usr/include/wx-3.0/wx/strconv.h:472:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxMBConvUTF32BE : public wxMBConvUTF32Base
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:472:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:472:24: error: expected ‘,’ or ‘;’ before ‘wxMBConvUTF32BE’
 class WXDLLIMPEXP_BASE wxMBConvUTF32BE : public wxMBConvUTF32Base
                        ^~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/strvararg.h:20:0,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:488:1: warning: data definition has no type or storage class
 class WXDLLIMPEXP_BASE wxCSConv : public wxMBConv
 ^~~~~
/usr/include/wx-3.0/wx/strconv.h:488:1: warning: type defaults to ‘int’ in declaration of ‘class’ [-Wimplicit-int]
/usr/include/wx-3.0/wx/strconv.h:488:24: error: expected ‘,’ or ‘;’ before ‘wxCSConv’
 class WXDLLIMPEXP_BASE wxCSConv : public wxMBConv
                        ^~~~~~~~
In file included from /usr/include/wx-3.0/wx/defs.h:570:0,
                 from /usr/include/wx-3.0/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:576:24: error: unknown type name ‘wxMBConv’
 WX_DECLARE_GLOBAL_CONV(wxMBConv, wxConvLibc)
                        ^
/usr/include/wx-3.0/wx/dlimpexp.h:116:50: note: in definition of macro ‘WXDLLIMPEXP_DATA_BASE’
 #    define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type
                                                  ^~~~
/usr/include/wx-3.0/wx/strconv.h:576:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxMBConv, wxConvLibc)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/strvararg.h:20:0,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:576:24: error: unknown type name ‘wxMBConv’
 WX_DECLARE_GLOBAL_CONV(wxMBConv, wxConvLibc)
                        ^
/usr/include/wx-3.0/wx/strconv.h:565:29: note: in definition of macro ‘WX_DECLARE_GLOBAL_CONV’
     extern WXDLLIMPEXP_BASE klass* wxGet_##name##Ptr();                 \
                             ^~~~~
/usr/include/wx-3.0/wx/strconv.h:566:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&’ token
     inline klass& wxGet_##name()                                        \
                 ^
/usr/include/wx-3.0/wx/strconv.h:576:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxMBConv, wxConvLibc)
 ^~~~~~~~~~~~~~~~~~~~~~




Continue below.
« Last Edit: December 13, 2018, 08:50:28 pm by ivan braga »

Offline ivan braga

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #12 on: December 13, 2018, 08:35:32 pm »
Code
In file included from /usr/include/wx-3.0/wx/defs.h:570:0,
                 from /usr/include/wx-3.0/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:580:24: error: unknown type name ‘wxCSConv’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvISO8859_1)
                        ^
/usr/include/wx-3.0/wx/dlimpexp.h:116:50: note: in definition of macro ‘WXDLLIMPEXP_DATA_BASE’
 #    define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type
                                                  ^~~~
/usr/include/wx-3.0/wx/strconv.h:580:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvISO8859_1)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/strvararg.h:20:0,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:580:24: error: unknown type name ‘wxCSConv’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvISO8859_1)
                        ^
/usr/include/wx-3.0/wx/strconv.h:565:29: note: in definition of macro ‘WX_DECLARE_GLOBAL_CONV’
     extern WXDLLIMPEXP_BASE klass* wxGet_##name##Ptr();                 \
                             ^~~~~
/usr/include/wx-3.0/wx/strconv.h:566:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&’ token
     inline klass& wxGet_##name()                                        \
                 ^
/usr/include/wx-3.0/wx/strconv.h:580:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvISO8859_1)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/defs.h:570:0,
                 from /usr/include/wx-3.0/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:583:24: error: unknown type name ‘wxMBConvStrictUTF8’
 WX_DECLARE_GLOBAL_CONV(wxMBConvStrictUTF8, wxConvUTF8)
                        ^
/usr/include/wx-3.0/wx/dlimpexp.h:116:50: note: in definition of macro ‘WXDLLIMPEXP_DATA_BASE’
 #    define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type
                                                  ^~~~
/usr/include/wx-3.0/wx/strconv.h:583:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxMBConvStrictUTF8, wxConvUTF8)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/strvararg.h:20:0,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:583:24: error: unknown type name ‘wxMBConvStrictUTF8’
 WX_DECLARE_GLOBAL_CONV(wxMBConvStrictUTF8, wxConvUTF8)
                        ^
/usr/include/wx-3.0/wx/strconv.h:565:29: note: in definition of macro ‘WX_DECLARE_GLOBAL_CONV’
     extern WXDLLIMPEXP_BASE klass* wxGet_##name##Ptr();                 \
                             ^~~~~
/usr/include/wx-3.0/wx/strconv.h:566:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&’ token
     inline klass& wxGet_##name()                                        \
                 ^
/usr/include/wx-3.0/wx/strconv.h:583:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxMBConvStrictUTF8, wxConvUTF8)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/defs.h:570:0,
                 from /usr/include/wx-3.0/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:586:24: error: unknown type name ‘wxMBConvUTF7’
 WX_DECLARE_GLOBAL_CONV(wxMBConvUTF7, wxConvUTF7)
                        ^
/usr/include/wx-3.0/wx/dlimpexp.h:116:50: note: in definition of macro ‘WXDLLIMPEXP_DATA_BASE’
 #    define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type
                                                  ^~~~
/usr/include/wx-3.0/wx/strconv.h:586:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxMBConvUTF7, wxConvUTF7)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/strvararg.h:20:0,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:586:24: error: unknown type name ‘wxMBConvUTF7’
 WX_DECLARE_GLOBAL_CONV(wxMBConvUTF7, wxConvUTF7)
                        ^
/usr/include/wx-3.0/wx/strconv.h:565:29: note: in definition of macro ‘WX_DECLARE_GLOBAL_CONV’
     extern WXDLLIMPEXP_BASE klass* wxGet_##name##Ptr();                 \
                             ^~~~~
/usr/include/wx-3.0/wx/strconv.h:566:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&’ token
     inline klass& wxGet_##name()                                        \
                 ^
/usr/include/wx-3.0/wx/strconv.h:586:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxMBConvUTF7, wxConvUTF7)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/defs.h:570:0,
                 from /usr/include/wx-3.0/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:596:30: error: unknown type name ‘wxMBConv’
 extern WXDLLIMPEXP_DATA_BASE(wxMBConv *) wxConvFileName;
                              ^
/usr/include/wx-3.0/wx/dlimpexp.h:116:50: note: in definition of macro ‘WXDLLIMPEXP_DATA_BASE’
 #    define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type
                                                  ^~~~
/usr/include/wx-3.0/wx/strconv.h:603:30: error: unknown type name ‘wxMBConv’
 extern WXDLLIMPEXP_DATA_BASE(wxMBConv *) wxConvCurrent;
                              ^
/usr/include/wx-3.0/wx/dlimpexp.h:116:50: note: in definition of macro ‘WXDLLIMPEXP_DATA_BASE’
 #    define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type
                                                  ^~~~
/usr/include/wx-3.0/wx/strconv.h:606:24: error: unknown type name ‘wxCSConv’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvLocal)
                        ^
/usr/include/wx-3.0/wx/dlimpexp.h:116:50: note: in definition of macro ‘WXDLLIMPEXP_DATA_BASE’
 #    define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type
                                                  ^~~~
/usr/include/wx-3.0/wx/strconv.h:606:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvLocal)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/strvararg.h:20:0,
                 from /usr/include/wx-3.0/wx/string.h:46,
                 from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /usr/include/wx-3.0/wx/wxprec.h:58,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:606:24: error: unknown type name ‘wxCSConv’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvLocal)
                        ^
/usr/include/wx-3.0/wx/strconv.h:565:29: note: in definition of macro ‘WX_DECLARE_GLOBAL_CONV’
     extern WXDLLIMPEXP_BASE klass* wxGet_##name##Ptr();                 \
                             ^~~~~
/usr/include/wx-3.0/wx/strconv.h:566:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&’ token
     inline klass& wxGet_##name()                                        \
                 ^
/usr/include/wx-3.0/wx/strconv.h:606:1: note: in expansion of macro ‘WX_DECLARE_GLOBAL_CONV’
 WX_DECLARE_GLOBAL_CONV(wxCSConv, wxConvLocal)
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/defs.h:570:0,
                 from /usr/include/wx-3.0/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/strconv.h:613:30: error: unknown type name ‘wxMBConv’
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 26 warning(s) (0 minute(s), 0 second(s))
 
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 26 warning(s) (0 minute(s), 0 second(s))
 
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 26 warning(s) (0 minute(s), 0 second(s))
 
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 26 warning(s) (0 minute(s), 0 second(s))
 
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 26 warning(s) (0 minute(s), 0 second(s))
 
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 26 warning(s) (0 minute(s), 0 second(s))
 
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 26 warning(s) (0 minute(s), 0 second(s))
 
Process terminated with status 1 (0 minute(s), 1 second(s))
50 error(s), 26 warning(s) (0 minute(s), 1 second(s))
 

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #13 on: December 13, 2018, 09:46:10 pm »
[Edit:]
You probably use a wrong wxWidgets installation...
Did you compiled it by yourself, or did you downloaded it from somewhere?


There is something strange... Why is there wxWidgets source code if you compile the libvgl target? There should nothing related to wx be in this target... There is probably something different in the wxWidgets wizard for linux and windows. Can you please check if there is something written in Project->Build options->select the project on the left->Compiler->Other compiler options?
If there is something like "wx--config" ecc, please move this to the Debug target, by cutting the text, select "Debug" on the left and paste it again...

or post only the project file here
« Last Edit: December 13, 2018, 10:20:08 pm by BlueHazzard »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData
« Reply #14 on: December 13, 2018, 11:54:19 pm »
Because they added "wx_pch.h" to the library target. Likely in the other compiler options.

Tim S.
« Last Edit: December 13, 2018, 11:57:16 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org