User forums > General (but related to Code::Blocks)

not for GNU C11 + error class WXDLLIMPEXP_FWD_BASE wxCStrData

(1/4) > >>

ivan braga:
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))
 

--- End code ---

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.

BlueHazzard:
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
--- End code ---
and why the **** do you mix codeblocks source with littlevgl source? They have absolutely nothing to do with each other....

ivan braga:
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.

stahta01:
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.
--- End quote ---

Tim S.

ivan braga:
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;
}
--- End code ---

Errors = 0 = Zero.

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

Thank you very much in advance.

Navigation

[0] Message Index

[#] Next page

Go to full version