Computer Chess Club Archives


Search

Terms

Messages

Subject: question about errors when I change my C code to C++

Author: Uri Blass

Date: 13:27:09 02/24/03


I try to change my C files to C++ after advice that I got when people told me
that inline functions are better macro(note that I do not know why they are
better but I found that C++ give me better warning than C for some reason.

The problem is that for some reason I also get errors that I do not understand.

I get the following errors for some varaibles when I change my C files to CPP
files

error LNK2001: unresolved external symbol "int *  info" (?info@@3QAHA)

Note that it is only for varaibles that I used for them the following trick

int PADDED_info[80];
int * const info = PADDED_info+8;

I have in data.h
extern int * const info;
I do not understand what is the problem.

Uri



This page took 0.02 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.