Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Plugins development / Re: Code completion using LSP and clangd
« Last post by omlk on November 18, 2023, 01:38:12 pm »
@ollydbg
Thanks for the answer. Then, if you know where to find information that will help improve code completion to a modern level, please let me know. Previously, someone wrote a code completion, but now - no one is capable of it?
The problem here is not to write the code, but to understand how it works, you can say the algorithm of actions.
92
Help / Re: mingw missing libs
« Last post by stahta01 on November 18, 2023, 12:53:05 pm »
gcc.exe  -o bin\Debug\GTK_Demo.exe obj\Debug\main.o  -LC:/msys64/mingw64/bin/../lib -lgtk-3 -lgdk-3 -lz -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lwinmm -ldwmapi -lsetupapi -lcfgmgr32 -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl   
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -ldwmapi
collect2.exe: error: ld returned 1 exit status

Decide which toolchain you are trying to use!
The above shows both "c:/mingw" and "C:/msys64/mingw64" this will normally result in a few weird errors.

Tim S.
93
Help / Re: mingw missing libs
« Last post by ollydbg on November 18, 2023, 12:25:45 pm »
what is the lib's file name?

I just search the keyword "dwmapi" in my F:\msys2\mingw64\lib folder, I don't see such name matches, instead, there is a file named:F:\msys2\mingw64\include\dwmapi.h

So, my guess is that the library name is not "dwmapi"?
94
Plugins development / Re: Code completion using LSP and clangd
« Last post by ollydbg on November 18, 2023, 08:56:50 am »
Hi, Pecan, thanks. I appreciate your work on the clangd_client plugin.
I'm using the rev 13397 for about 6 hours, and I haven't see a crash here till now. :)
I came across the post, and I wonder if you were able to implement what you wrote about?
https://forums.codeblocks.org/index.php?topic=17543.0

And I also wonder how much faster the clang_client works compared to the standard codecompletion (because my codecompletion in some cases does not see the classes, I changed the order of the included header files and disabled others, but there are still problems)?

ollydbg will have to answer your question about COW strings.
It applies to legacy CodeCompletion but not so much to Clangd_Cllient.


@omlk

The COW strings issue. If I member correctly, recent GCC's std::string and wxString do not use the COW(copy on write). So, I think this issue is gone. Because the COW has many issue on multiple thread environment.

About the old legecy CodeCompletion plugin, the parser in this plugin has all hand written. But the modern C++'s grammar is very complex to parse, the parser failed to parse the source files if those files have many advanced C++ code.

Clangd is a compiler level parser, so it parse the source file correctly.
95
Help / mingw missing libs
« Last post by Barmkin on November 18, 2023, 07:27:33 am »
This problem keeps happening where i have the path of the variables correctly placed in the compiler settings but i cant seem to find the   -ldwmapi anywhere (this is the message):

 gcc.exe  -o bin\Debug\GTK_Demo.exe obj\Debug\main.o  -LC:/msys64/mingw64/bin/../lib -lgtk-3 -lgdk-3 -lz -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lwinmm -ldwmapi -lsetupapi -lcfgmgr32 -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl   
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -ldwmapi
collect2.exe: error: ld returned 1 exit status

I'm kinda new to this ide and how to use it properly any ideas? The C:/msys64/mingw64/bin/../lib path as the -ldwmapi libs on it.
I have applied `pkg-config --cflags gtk+-3.0` to other compiler options and in the linker `pkg-config --libs gtk+-3.0`
96
Help / Re: Iconv.exe crash when starting to debug
« Last post by stahta01 on November 18, 2023, 12:41:56 am »
OS is Windows. Error is BEX according to crash report. So it's caused by attempt to execute data. Crash can possibly be fixed via adding Iconv.exe to DEP white list, but I don't think it's good idea. As Iconv.exe doesn't affect anything, then may be there is some way to disable it? Is it executed by Code::Blocks?

On my Computer (Win 10 64 bit) "Iconv.exe" is not part of an nightly CB build; but, it is part of an MinGW GCC toolchain. So, you should ask the people who built the MinGW toolchain you are using.

Edit: Web searching implied gdb.exe called "Iconv.exe" and the posters implied it might be a bug in gdb.

Tim S.
97
Help / Re: Iconv.exe crash when starting to debug
« Last post by omlk on November 17, 2023, 10:39:42 pm »
To help you, we have to guess which Windows it is?
  • Windows 3.1
  • Windows 95
  • Windows 98
  • Windows XP 32 bit or 64bit
  • Windows XP 32 bit or 64bit with SP1 SP2 SP3
  • Windows NT 32 bit or 64bit
  • Oh, I forgot about: Windows Me Millennium  :)
  • Windows Vista 32 bit or 64bit
  • Windows 7 32 bit or 64bit
  • Windows 7 32 bit or 64bit  with SP1
  • Windows 8 32 bit or 64bit
  • Windows 10 32 bit or 64bit
  • Windows 11 32 bit or 64bit
  • Windows Sever ...
The more information you provide, the easier it will be to understand what the problem is.Also, in some cases, you need to attach a screenshot or a link to a video or animation to the post.You can also specify the link from where you downloaded the code blocks.
Attached a screenshot as an example.
98
Help / Re: Iconv.exe crash when starting to debug
« Last post by Mr.Madguy on November 17, 2023, 10:23:01 pm »
OS is Windows. Error is BEX according to crash report. So it's caused by attempt to execute data. Crash can possibly be fixed via adding Iconv.exe to DEP white list, but I don't think it's good idea. As Iconv.exe doesn't affect anything, then may be there is some way to disable it? Is it executed by Code::Blocks?
99
Help / Re: Iconv.exe crash when starting to debug
« Last post by omlk on November 17, 2023, 10:06:31 pm »
You did not specify which OS you are running code::blocks on.
Maybe this will partially help with the search.https://en.wikipedia.org/wiki/Iconv
100
Help / Iconv.exe crash when starting to debug
« Last post by Mr.Madguy on November 17, 2023, 09:41:09 pm »
I use Code::Blocks 20.03 64bit with w64devkit toolchain. Every time I try to debug my program - Iconv.exe crash is reported before launching it. Everything else works as usual, i.e. debugging itself works properly. For what reason Iconv.exe is launched? Is it launched by Code::Blocks or GDB? Can I fix this problem somehow? It's annoying.
Pages: 1 ... 5 6 7 8 9 [10]