Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Plugins development / Re: Code completion using LSP and clangd
« Last post by killerbot on Yesterday at 05:06:03 pm »
I build it like this :

sudo rm -rf /opt/llvmTemp
rm -rf llvm-project
git clone --branch llvmorg-16.0.0 --depth=1 https://github.com/llvm/llvm-project.git

cd llvm-project
sed -i 's/set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default ON)/set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default OFF)/g' ./llvm/runtimes/CMakeLists.txt

mkdir build
cd build

cmake -G Ninja -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/opt/llvmTemp -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;openmp" -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind;compiler-rt" ../llvm

ninja
sudo ninja install

#sudo 'echo "/opt/llvm/lib" > /etc/ld.so.conf.d/clanglib.conf' \
sudo ldconfig





note the echo line, you need to do this at least once, and off course also add /opt/llvm/bin yo your  PATH
3
Plugins development / Re: Code completion using LSP and clangd
« Last post by Pecan on Yesterday at 05:57:07 am »
since I build and installed clang16, the plug-in keep asking to specify the path to clangd, though it is in the same location as before, and even explicitly specifying the path does not help.


> which clangd
/opt/llvm/bin/clangd

> clangd --version
clangd version 16.0.0 (https://github.com/llvm/llvm-project.git 08d094a0e457360ad8b94b017d2dc277e697ca76)
Features: linux
Platform: x86_64-unknown-linux-gnu

Tell me how you installed it so I can do the same and reproduce the error.
4
This is the v2 of the modified wizard.script.

I add a new option page named wxBuildPlatform where a ChoiceList is used.

Code
        Wizard.AddGenericSingleChoiceListPage(_T("wxBuildPlatform"),
                                              _("Please select the wxWidgets build platform want to use"),
                                              _T("Windows;Windows-MSYS2 or Unix"),
                                              IsMsys2Lib); // select wxwidgets build platform

So that the adding of library pages will mainly depends on the user selection. Some of the code are moving from BeginWizard() to OnLeave_WxGuiSelect(), because those pages are added dynamically depends on the previous user choice.
5
Using Code::Blocks / Re: Support for Microsoft Visual Studio 2017 Community
« Last post by Miguel Gimenez on March 19, 2023, 11:36:08 pm »
Current nightly should support MSVC17.

EDIT: See commit r13165.
6
Plugins development / Re: Code completion using LSP and clangd
« Last post by killerbot on March 19, 2023, 11:12:01 pm »
since I build and installed clang16, the plug-in keep asking to specify the path to clangd, though it is in the same location as before, and even explicitly specifying the path does not help.


> which clangd
/opt/llvm/bin/clangd

> clangd --version
clangd version 16.0.0 (https://github.com/llvm/llvm-project.git 08d094a0e457360ad8b94b017d2dc277e697ca76)
Features: linux
Platform: x86_64-unknown-linux-gnu
7
Using Code::Blocks / Support for Microsoft Visual Studio 2017 Community
« Last post by advertless on March 19, 2023, 11:06:17 pm »
Does Code::Blocks support  Microsoft Visual Studio 2017 Community?   

I will now describe what I have tried and what did and did not work.   In Code::Blocks  IDE I go Settings >> Compiler... >> Global Compiler Settings >> Selected Compiler.  In that dropdown I see,

  • Microsoft Visual C++ Toolkit 2003
  • Microsoft Visual C++ 2005/2008
  • Microsoft Visual C++ 2010



I would be more than happy to install one of these on my computer, but I have tried all 3 and none are possible.  Describing each item at a time,

Microsoft Visual C++ Toolkit 2003  , does not exist anymore.

Microsoft Visual C++ 2005/2008 , does not exist anymore.   

Microsoft Visual C++ 2010 appears to exist at the following page, but this is deception.  The redistributable found  there is really only a 5MB security fix.

(see  "Other Tools, Frameworks, and Redistributables"    https://visualstudio.microsoft.com/vs/older-downloads/  )


2015 Express

The final "Express" edition that Microsoft released was the 2015 Express.   Afterwards, they renamed these to "Community Edition".   After browsing and reading this forum for several hours, I noticed some threads suggesting that 2015 Express can interop with Code::Blocks.  I then attempted to install it on my computer. This was flatly refused,  an error message was displayed and I closed it, shown here :

Code
Setup Failed. 
0x80070666 - Another version of this product is already installed.
Installations of this version cannot continue. To configure or remove
the existing versions of this product, use Add/Remove Programs
on the Control Panel.

The reason this failed on my computer is because I have already installed  Visual C++ 2017 Community.  I require this to be on my computer in order to operate a GPU through Pytorch, a library related to python.  So I will not be removing it.

So now that Microsoft disallowed 2015 Community to be installed "alongside"  2017 Community,  my question is thus :  Does Code::Blocks support  Microsoft Visual Studio 2017 Community?   

If it does,  can you provide a  guide/tutorial for how to point the IDE to the relevant cl.exe    ,  linkers, and other resource compilers that it requires for targeting WINAPI application development?   


8
Help / Re: New to //(* ... //*)
« Last post by BlueHazzard on March 19, 2023, 08:34:11 pm »
What are the errors you are getting from compiling?
9
Help / Re: Compiler issues
« Last post by BlueHazzard on March 19, 2023, 08:33:01 pm »
Also make sure that you have write permission for the folder your project is into and also check if your anti virus program is disabled for the project folder and/or codeblocks executable.

Code
gcc.exe  -o bin\Debug\Project.exe obj\Debug\main.o   
this path looks quite sus
10
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by AnkM on March 19, 2023, 06:34:48 pm »
Dear Newcomers,
please make a "I am new, I am here" post by replying to this thread so we know you are a human being.
This will make is easier for us to differ valuable members from SPAM bots whose number is growing, unfortunately.
The Code::Blocks team.
I am new, I am here
Pages: [1] 2 3 4 5 6 ... 10