D
Dr. Leff
I am having toruble with char const * material in an older program
that
I downloaded and am trying to get working. I am compiling in Visual C
++
Here is the error message
load_font
1>TextImpl.obj : error LNK2019: unresolved external symbol
"int __cdecl load_font(char const *)" (?load_font@@YAHPBD@Z)
referenced in function
"public: __thiscall TextImpl::TextImpl(class View *,int,double,
double,char *,char const *,char const *,int)"
(??0TextImpl@@QAE@PAVView@@HNNPADPBD2H@Z)
Here is the relevant part of the program:
char F[10000] ;
strcpy (F,fname);
if (fname)
fontid = load_font(F);
else
fontid = inq_font();
And this is how it is declared in another procedure:
int
load_font( char *fontname)
Dr. Laurence Leff Western Illinois University, Macomb IL 61455 ||
(309) 298-1315
Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX:
309-298-2302
that
I downloaded and am trying to get working. I am compiling in Visual C
++
Here is the error message
load_font
1>TextImpl.obj : error LNK2019: unresolved external symbol
"int __cdecl load_font(char const *)" (?load_font@@YAHPBD@Z)
referenced in function
"public: __thiscall TextImpl::TextImpl(class View *,int,double,
double,char *,char const *,char const *,int)"
(??0TextImpl@@QAE@PAVView@@HNNPADPBD2H@Z)
Here is the relevant part of the program:
char F[10000] ;
strcpy (F,fname);
if (fname)
fontid = load_font(F);
else
fontid = inq_font();
And this is how it is declared in another procedure:
int
load_font( char *fontname)
Dr. Laurence Leff Western Illinois University, Macomb IL 61455 ||
(309) 298-1315
Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX:
309-298-2302