I'm using windows 8, Code::Blocks IDE, and the gcc c++ compiler.
I downloaded the latest version of Armadillo (4.550.0) and followed the instructions in the readme file, I copied the \include\ folder to my codeblocks project directory and added it to search directories in compiler settings.
However, when I attempt to compile one of the example programs from the armadillo download, I get the "No such file or directory" error.
Any help would be appreciated.
Related
I just downloaded VS Code and I'm trying to execute C++ program on it.
I followed the VS Code C++ Get Started Guide, installed the latest version of MinGW-w64 via MSYS2 in drive D:/ and did all the steps on MSYS2 website.
I added the environment path D:\msys64\mingw64\bin
I also installed the C/C++ extension.
However, when I try to execute C++ program, it shows this error message.
How do I change the compiler path to D:\?
I'm not using bloodshed dev c++ , instead I'm using orwell dev c++ , I got Allegro 5 and installed the package (as a .zip file) but it says 'allegro5/allegro.h: No such file or directory'. Maybe I'm using the wrong type of header or is it another problem?Thanks!
That means you did not install the Allegro files in the correct place. I´m not familiar with the GCC Toolchain that Orwell uses (Im a Visual Studio guy), but what you need to do is place them on a place where the compiler can find them. Then make a makefile with the instructions on how to build this program with the correct Allegro libraries linked.
Here is the wiki article for installation on Code::Blocks, Maybe it can help you installing on DevC++, however, I think the binaries listed here might be newer than the ones on the Allegro's wiki page.
So I am trying to get my first c++ app to run but i keep getting this error. The error originates from the freeglut_std.h file.
I have downloaded the freeglut 3.0.0 MinGW Package and placed the files inside their respective directories in my MinGW installation folder but there is no file called gl.h.
I have added the libraries to my project properties
I have checked the question that this should be a duplicate of but the solution given there, install Windows SDK, did not fix my problem.
Normally there's no need to download GL/gl.h; OpenGL is part of the Windows ABI contract, which means that every compiler toolchain that targets the Windows API must provision for compiling the OpenGL version that's specified for the Windows ABI. That would be OpenGL-1.1
If your MinGW installation lacks the GL/gl.h header, something is broken in your particular installation. Note that in some Linux distributions you may have to install the development support files separately. But with MinGW the OpenGL headers should be part of the standard installation.
I just downloaded the sources of LLVM and Clang as compressed files.
The files I have so far are:
cfe-3.5.0.src.tar
compiler-rt-3.5.0.src.tar
libcxx-3.5.0.src.tar
libcxxabi-3.5.0.src.tar
llvm-3.5.0.src.tar
I need to configure LLVM and Clang using Windows 8.1 using Visual Studio 2013.
I ask this question because the tutorials I have consulted so far uses svn, but having the sources from compressed files I not have a clear vision of what should be the directory tree in order to cmake work properly.
The directory structure should be:
llvm/
projects/
compiler-rt/
libcxx/
libcxxabi/
tools/
clang/
I'm not sure how far along libc++ support for Windows is, as I just use MSVC's implementation for ABI compatibility.
Compiling llvm framework (llvm, clang, libc++, etc...) with Visual Studio 2013 is not so dificult.
Download the sources
Descompress the sources
Move the decompressed folders to their place in the llvm source tree. (ex: cfe-version goes in llvm\tools directory with name clang. This king of info could be obtained from the CMakeFile.txt files (ex: add_llvm_external_project(clang) in the file `llvm\tools\CMakeFile.txt). The CMakeFile.txt are the files that instruct cmake program how to generate the projects (ex: Makefile, VS projects, XCode projects... for compile llvm)
Create a directory where to save the vs2013 projects
Generate the VS2013 projects (ex: being inside the previous directory execute: cmake llvm_sources -G "Visual Studio 12" where llvm_sources is the root directory of the llvm sources.
Open the project and compile (could take long to compile 30min or more)
Notes: some projects (ex: lldb) could need additional dependencies (ex: python c headers for bindings).
One of the problems of clang when compiling from sources is that the directory path of the include headers that clang use (ex: std library headers), are fixed in the source code in: llvm\tools\clang\lib\FrontEnd\InitHeaderSearch.cpp, in the case of compiling llvm with VS2013, by default it use the MS std headers.
Compiling almost every mid size program with clang using the MS header would give you error with MS extensions not supported yet by clang, with non-conforming c++ (that vc++ accept as valid) and other sort of problems, this is the case of various libraries of boost also (when using the MS headers).
Better success history for me was compile using this same procedure with MinGW for windows and using the MinGW headers. In this case most probably need to modify by hand the HeaderSearch file for clang to search for the header (the last versions of clang don't have search path for the last versions of gcc, at least in the stable version 3.5.0).
Using this method, I successfully compile clang 3.5.0 with MinGW with GCC 4.9.1 in Windows 8.1.
I have downloaded the latest version available of Borland C++ 5.5 compiler. I have installed the exe file but the program doesn't run.
I have got this in READ ME file of the installation package but I cant make out anything..
Installing and running the Command Line Tools
Run freecommandlinetools.exe; choose the drive and folder into
which you want to install the free
C++Builder 5 command line tool
development system.
From the bin directory of your installation: a. Add
"c:\Borland\Bcc55"
to the existing path b. Create a bcc32.cfg file which will set
the compiler options for the Include
and Lib paths (-I and -L switches to
compiler) by adding these lines:
-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib" c. Create an ilink32.cfg file which will
set
the linker option for the Lib path by
adding this line:
-L"c:\Borland\Bcc55\lib"
Please help me to understand this.
I suggest to use Borland C++ XE3, XE2, or 6.0 at least.
There were so many bugs in Borland 5.5 which will confuse you, or make trouble to your project.
Borland 5.5 is an extremely old compiler.
It doesn't even implement std::string properly.
Use a more modern compiler, like g++ or Visual C++ (they're both free).
Cheers & hth.,