Author: Bo Persson
Date: 14:07:45 02/26/03
Go up one level in this thread
On February 24, 2003 at 17:58:21, Uri Blass wrote: >On February 24, 2003 at 17:47:50, Dann Corbit wrote: > >>On February 24, 2003 at 17:37:44, Uri Blass wrote: >>[snip] >>>Deleting intermediate files and output files for project 'main - Win32 Release'. >>>--------------------Configuration: main - Win32 Release-------------------- >>>Compiling... >>>main.cpp >>>evaluate.cpp >>>C:\unzipped\movei257source\evaluate.cpp(1279) : warning C4390: ';' : empty >>>controlled statement found; is this the intent? >>>boardi.cpp >>>data.cpp >>>Linking... >>>xilink6: executing 'C:\PROGRA~1\MICROS~3\VC98\Bin\link.exe' >>>main.obj : error LNK2001: unresolved external symbol "int * info" >>>(?info@@3QAHA) >>>evaluate.obj : error LNK2001: unresolved external symbol "int * info" >>>(?info@@3QAHA) >>>boardi.obj : error LNK2001: unresolved external symbol "int * info" >>>(?info@@3QAHA) >> >>In which file is the function info() that returns an integer pointer contained? >> >>Is it correct that it takes no arguments? > >info is not a function but an array >I have >extern int * const info; >in data.h > >I have > >int PADDED_info[80]; >int * const info = PADDED_info+8; >in data.c > >I see that I did not include data.h in data.c but it caused me no problem >with c files You have found an actual difference between the languages! In C++, const variables are considered local unless declared otherwise. In C, all global (file level) variables are extern by default. Bo Persson bop2@telia.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.