Author: Joshua Haglund
Date: 00:22:17 01/08/03
#include <iostream>
#include <string>
using namespace std;
void getMoves(string);
int main() {
string moves[31] = {"e2e4", "e2e3", "d2d4", "d2d3",
"c2c4", "c2c3", "b2b4", "b2b3",
"g2g3", "g2g4", "a2a3", "a2a4",
"f2f3", "f2f4", "h2h3", "h2h4",
"e3e4", "d3d4", "c3c4", "a3a4",
"b3b4", "f3f4", "g3g4", "h3h4",
"e4e5", "e5e6", "e6e7", "e7e8R",
"e7e8Q", "e7e8B", "e7e8N"};
getMoves(moves[31]);
return 0;
}
void getMoves(string m[31])
{
cout << m[31] << endl;
}
I get this error. I don't know what this means.
Is this error saying it's not possible to pass the string by value?? Hmmm
Compiling...
move.cpp
Linking...
move.obj : error LNK2001: unresolved external symbol "void __cdecl
getMoves(class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >)"
(?getMoves@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Debug/move.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
move.exe - 2 error(s), 0 warning(s)
Help needed,
Joshua
toneewa@yahoo.com
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.