What is the differences between using SDL_bgi and libXbgi library? - sdl

From this link I came to know about using graphics.h using SDL_bgi & libXbgi library. But I don't know the diffrences between using SDL_bgi and libXbgi library.

SDL_bgi is multiplatform, faster, and more compatible with the original GRAPHICS.H by Borland; besides, it provides lots of extensions. No contest.

Related

Is it possible to include a standard c++ library in a .metal file?

I am currently working on a metal kernel (in a .metal file) for an image processing application in iOS. I wanted to include some standard C++ libraries (such as <iostream> or <algorithm>), but Xcode doesn't seem to allow it (I get a "file not found" error at compile time.
Has anybody ran into this sort of problem before? It seems ridiculous to have the ability to write custom kernels in metal without using some basic libraries, which makes me think that there must be an answer.
Let's see what the documentation says:
The C++ standard library must not be used in the Metal shading language code. Instead of using the C++ standard library, Metal uses its own standard library, which is described in Metal Standard Library.
So no, it's not possible. Use the metal standard library instead.

How do I use the rope from C++ STL in Xcode

Apologies if I'm asking a silly newbie question. I'm new to C++ (familiar with C and objective C) and wanted to use the rope from the standard template library. Is this included with the libraries that Xcode uses? I have tried #include <vector> and the same for map successfully and also ext/hash_map. However rope does not seem to be available. Do I just have to download the source and include it in my project?
Unfortunately "Rope" is not part of the C++ standard!
C++ Overview: http://www.cplusplus.com/reference/
From the link you posted:
This distribution of the STL consists entirely of header files: there is no need to link to any library files.
This means the steps to use it are:
download the source code for SGI's STL implementation
add them to your include path
include files as necessary in your code
compile
That said, the link you posted is not the C++ standard library. It is an implementation of STL, (the precursor to the C++ standard library) with a few (non-standard) additions. In particular, the rope implementation you found is a non-standard adition.

How do you build the Generic Math Template Library on Windows with Visual C++

Currently, I'm trying to implement a vector and matrix library for my project. After searching on the web, I found some suggestion and decided on Generic Math Template Library because it is more focused to graphics programming. After downloading the source, I found out that it can only be built (at least with less effort) on Linux / Unix using SCons. So, what I wanted to ask is, how do you build it for Windows using Visual C++? Thanks in advance.
PS: Also if you have any different opinion about my selection of library, please don't be shy to enlighten me. I am also thinking about switching over to Eigen.
From where did you take gmtl?
http://sourceforge.net/projects/ggt/files/Generic%20Math%20Template%20Library/0.6.1/
If you use that version it should be only an include of the header files, so that you don't really need any SCons or whatever.

C++ Crossplatform lightweight file, threading and processing library

I'm writing for sometime an wrapper library for my own programming language in C++.
Some of the most important intensions of my library is that it must be fast, easy, portable and lightweighted.
Currently it's depending on the Boost libraries. The problem with the boost libraries is that it's relatively large (file sizes). Also, it's depending on static libraries you have to build yourself. Compared to the prebuilt libraries coming with any native compiler (std), it's lacking on 2 out of the 4 intensions:
Easy - Users need to build boost itself
Lightweighted - Boost itself is about 100 MB
I was hoping for some advice, since currently I´m only using boost for purposes std doesn´t provide like threading, file searching and process creation (using unaccepted Boost.Process).
What is the best go for me, stay with boost, writing the libraries myself or maybe you guys know any other good librarie(s) which settle my needs?
Edit: This project is being developed with MinGW on Windows, for portability with other platforms (GCC).
Since the C++11 standard, C++ have threading built into the standard library.

How to use Boost uBLAS C++ library in an iPhone project?

I want to use Boost library in my iPhone project, specifically only boost::numeric::ublas. I managed to build static libraries for boost in order to link them in my iPhone project. However, when I look at those .a libraries I can't find one that's related to ublas (I tried ./bootstrap.sh --with-libraries=ublas in terminal but no luck). Does anyone know which static library to look for ublas? Or how to use ublas in an iPhone project in general?
Thanks!
uBlas is header-only so there is no static library - see this view of the libraries:
http://www.boost.org/doc/libs/1_44_0/?view=filtered_header-only
If you are OK with running iOS4 only, use the Accelerate framework, it has BLAS and features hardware acceleration (when available, software otherwise).
Even if you need 3.x support, it would be worth figuring out how to toggle the use of Accelerate when possible just to get the hardware support.
I can't answer the iPhone-specific part but I can help at least with the Boost part...
Boost uBlas is a header-only library so you don't need to build and link against any .a files. Just include the headers in your project if you want to use the library.