だから、私は C++ プログラミングにかなり慣れていませんが、Python と FreeBASIC で SDL を広範囲に使用しています。ここでばかげたことを見逃していると確信していますが、何を試しても、video.h ファイルに「エラー: 'namespace' の前に初期化子が必要です」というエラーが表示され続けます。それは私を少し狂わせています。
#include "SDL/SDL.h"
#include <iostream>
namespace video {
// This is here because like video, everything uses it and the players should never be able to touch it.
int rolldice(int minimumroll, int maximumroll, int numberofdice);
// Same Here.
char* charraystring(std::string prestring);
// Now we're in video proper
// This function loads an image, checks to make sure it works, returns the image, and unloads the testing surface.
SDL_Surface* loadimage(std::string path);
// This is an optimized blitter that will exit with a signal if it encounters an error.
void oblit(SDL_Surface* pic, SDL_Rect frame, SDL_Surface* screen, SDL_Rect location);
}