trying a code for a simple game i downloaded. when i run it i get lines and lines of this error:
error stray '\200' in program (with different numbers)
- i'm using code::blocks, in case that matters....
what does this mean??
here are the first lines of the code. the first error (one in subject) points to line 36
//Mine Field
#include <iostream>
#include <exception>
#include <string>
#include <vector>
#include <cstdlib>
#include <ctime>
using std::string;
using std::vector;
using std::srand;
using std::time;
class StepOnMine {};
class FailedDisarm {};
class MineField
{
vector<bool> minefield;
//stores where the player has been
vector<bool> beenThere;
//current location of player
int location;
int menu(string choices[], int numChoices)
{
using std::cout;
using std::cin;
int choice;
do {
for (int i = 0; i < numChoices; i++)
{
cout << i+1 << “) “ << choices[i] << “\n”;
}
cin << choice;
while (choice < 1 || choice > numChoices);
return choice;
}
Compiling: main.cpp
C:\Users\Sebastian\Desktop\cpp projects\ranya\test\main.cpp:2:2: warning: #import is a deprecated GCC extension
In file included from C:\Users\Sebastian\Desktop\cpp projects\ranya\test\main.cpp:2:
C:\\fxcore.dll:1: error: stray '\220' in program
In file included from C:\Users\Sebastian\Desktop\cpp projects\ranya\test\main.cpp:2:
C:\\fxcore.dll:1:4: warning: null character(s) ignored
C:\\fxcore.dll:1: error: stray '\3' in program
C:\\fxcore.dll:1:6: warning: null character(s) ignored
C:\\fxcore.dll:1: error: stray '\4' in program
C:\\fxcore.dll:1:10: warning: null character(s) ignored
C:\\fxcore.dll:1: error: stray '\377' in program
C:\\fxcore.dll:1: error: stray '\377' in program
C:\\fxcore.dll:1:15: warning: null character(s) ignored
C:\\fxcore.dll:1: error: stray '\270' in program
C:\\fxcore.dll:1:18: warning: null character(s) ignored
C:\\fxcore.dll:1: error: stray '@' in program
C:\\fxcore.dll:1:26: warning: null character(s) ignored
C:\\fxcore.dll:1: error: stray '\20' in program
C:\\fxcore.dll:1: error: stray '\1' in program
C:\\fxcore.dll:1:63: warning: null character(s) ignored
C:\\fxcore.dll:1: error: stray '\16' in program
C:\\fxcore.dll:1: error: stray '\37' in program
C:\\fxcore.dll:1: error: stray '\272' in program
C:\\fxcore.dll:1: error: stray '\16' in program
C:\\fxcore.dll:1:69: warning: null character(s) ignored
C:\\fxcore.dll:1: error: stray '\264' in program
C:\\fxcore.dll:1: error: stray '\315' in program
C:\\fxcore.dll:1: error: stray '\270' in program
C:\\fxcore.dll:1: error: stray '\1' in program
C:\\fxcore.dll:1: error: stray '\315' in program
C:\\fxcore.dll:3:2: warning: null character(s) ignored
C:\\fxcore.dll:3: error: stray '\20' in program
C:\\fxcore.dll:3: error: stray '\311' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\365' in program
C:\\fxcore.dll:3: error: stray '\265' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\267' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\267' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\241' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\345' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\267' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\241' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\3' in program
C:\\fxcore.dll:3: error: stray '\232' in program
C:\\fxcore.dll:3: error: stray '\267' in program
C:\\fxcore.dll:3: error: stray '\232' in program
Don't use import. It seems that your preprocessor doesn't recognise it.
Don't #include a dll file. It's meaningless. #include literally copies the entire file you want to include, and puts it into the place where you wrote #include .
Do not #include a dll file. I know I already said that, but I get the feeling saying it twice will help.
Why are you trying to #include a dll file? I think you must have misunderstood what a dll file is.