Codeblocks can't find Intel C++ compiler (Linux Mint) - c++

Codeblocks (v13.12) can't find my installation of the Intel C++ compiler.
I have the bundled version of icc that comes with Composer XE, which I believe is the only way to currently get it. When I go into Codeblocks' toolchain settings I see that it is looking for it in "/opt/intel/cc/9.0" which is wrong. When I try to change this to the actual path to my icc ("/opt/intel/composer_xe_2013_sp1.3.174/bin/intel64") it says that it still can't find it.
Has anyone gotten the current icc to work with the current Codeblocks?

I am not an expert. I will provide my settings so that hopefully it will work for you:
settings-->compiler debugger-->toolchain executables-->Compiler's installation directory:
/opt/intel/composer_xe_2013/sp1
C: compiler icc
C++ compiler icpc
Linker for dyn icpc
linker for static ar
debugger: idb
settings-->compiler debugger-->search directories
/opt/intel/composer_xe_2013_sp1.3.174
I have code:blocks 10.05 on ubuntu 12.04. Hopefully this helps/works for you or someone else!

Related

Can't build and run in C++ Codeblocks

So I just recently downloaded a C++ IDE called Code::Blocks and made a new project. But when I tried to Build and Run it, the code gave some errors. I know that it isn't a problem with syntax or anything like that because I ran the default code that Code::Blocks provided. The error is the following:
Project/Target: "firstcpp - Debug":
The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?!
Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Tried to run compiler executable 'C:\MinGW/bin/gcc.exe', but failed!
Skipping...
Nothing to be done (all items are up-to-date).
It seems to me like there is some kind of issue with the C++ compiler, but I thought Code::Blocks already came with a C++ compiler, so I'm not too sure what the issue here. I also followed their instructions to go to Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables, but I'm not too sure what they mean by fix the compiler. Here is a screenshot of what I'm seeing:
Also here's info on my PC if you need it:
At this point I'm not too sure what to do to fix this problem. I have asked my friends about this problem(they have already successfully downloaded and used Code::Blocks), and they said that they never encountered this problem while they were installing it.
You need to ensure that you have a working installation of the GNU Compiler Collection, and that the paths you select for your toolchain exist.
If you don't already have GCC Installed, the easiest way would be to download a Code::Blocks distribution that comes pre-bundled with MinGW from the download site. However, it's also possible for you to install GCC through other means, such as:
Installing GCC with MinGW through msys2, or
Installing GCC with scoop install gcc on Windows
In either case, you need to select the installation path that contains the bin directory when setting up the toolchain in Code::Blocks.
In case you didn't notice, C::B formed the path to compiler with both "\" back slashes and "/" slashes, which simply isn't a valid Windows path !!
Slashes are used in Linux not Windows! But for some reason C::B is not getting this. And probably your Mingw is well set !!
C:\MinGW/bin/gcc.exe should be C:\MinGW\bin\gcc.exe
I had pretty hard time trying to fix this in win 7 32 bit/C::B version 20.03 but with no success, i checked all available options and settings, and actually i started to think that it's a bug.

How to set Xcode up for LLVM/Clang development?

I've installed LLVM and Clang on macOS Sierra.
Until now, I've used the llvm-config command for compiling with clang. This works fine, and I can compile and link the LLVM tutorial programs from the command-line.
However, I'd like a professional IDE for development with type-checking and proper debugging.
The problem is that I don't know how to set Xcode up for LLVM/Clang development...
I include the C++ headers in the include/llvm directory, and I think I pass the libraries to the linker, but something goes wrong:
In the compilation phase, I get a linker error saying, e.g, that symbol parseIRFile isn't found. However, the IDE can see the functions in the header files.
Would someone help me out in setting up Xcode for LLVM/Clang development? I'm new to macOS and Xcode, so please give clear explanations of the required steps.
Thanks very much.

add c++ compiler, linker flags to nsight eclipse 6.5 in ubuntu

I started using nsight eclipse 6.5 with cuda 6.5 under ubuntu 14.04 for gpu development purposes. But now I'm confused with the toolchains. How to add g++ support to the project and pass linker flags that are used by certain c++ libraries.
It seems that the toolchain consists only nvcc (I can't see any g++/gcc there?)
How to put them in my project?
Thanks
OK I've solved it. I needed to put these flags to the nvcc compiler -> misc settings. Then it works.

Know g++ Version of Code blocks in Windows

I am solving questions on Interviewstreet.com. They said they use C++ version g++ 4.6.3,C0x mode.
I am writing code on code blocks. So i want to know which version iam using in code blocks is it in C0x mode or C11 mode??
I have tried using g++ --version i got g++ TDM-2 mingw32 4.4.1.Can u tell me where i can get this kind of information.
what is the difference between C++ 0x and C++11??
You'll have to update the version of g++ to 4.6.3 (or later) if you want to use c++11 features. See this question and it's answers on how to do it for deb linux.
Then you'll have to pass --std=c++0x to the compiler in options. You should be able to easily find them in codeblocks.
what is the difference between C++ 0x and C++11??
c++0x is a synonym for c++11.
The command:
g++ --version
gives you the version of your g++ or mingw compiler. Since you got g++ TDM-2 mingw32 4.4.1 then your version is 4.4.1. If you want to use version 4.6.3 as in that web site, then you would have to update.
It wouldn't hurt to use a newer than 4.6.3 version of mingw, so please see here for the latest version. This page offers an windows installer for mingw.
After installation, you would have to configure CodeBlocks to use the newly installed compiler by looking into Compiler and debugger settings -> Toolchain executables tab and setting the paths for the compiler-related executables to the new ones.
Hope this helps.
EDIT:
Here is a small tutorial/example of what the CodeBlocks settings look like.

Where can I download GCC 4.3.2 binaries for Windows?

I have to write a c++ program, and i want to do this in vstudio 2010, because it's the most comfortable way for me. But later this code will be compiled in gcc 4.3.2 (ejudge). I can't find gcc 4.3.2 binaries for Windows, if there any ways to check correctness of gcc compilation? Or maybe anyone will help to find gcc binaries? I found this link http://tdm-gcc.tdragon.net/download but there i can't find 4.3.2 version binaries, only source code. Thanks.
MinGW, or Minimalist GNU for Windows, is a set of GNU compilers for Windows platforms. It's the easiest way to use G++ on windows platform. You could also use Cygwin, but it would be a bit of overkill.
As I recall g++ 4.3.2 was used in an older version of the Code::Blocks IDE, as the bundled compiler.
However, I'm currently unable to connect to [http://www.codeblocks.org], so I don't know if they provide downloads of older versions.