|
having trouble getting rid of pre compiled header |
Posted by jef on Nov-20-2024 09:49 |
|
Using VS 2022 in MFC mode trying to call graph function from inside a dialog called "DlgResults.cpp". I was getting "can't find precompiled header" so I turned off the ChartViewer.cpp property for precompiled headers and getting link error:
"1>ChartViewer.obj : error LNK2019: unresolved external symbol _CChart_getResourceLoader referenced in function "void * __cdecl Chart::getResourceLoader(void)" (?getResourceLoader@Chart@@YAPAXXZ)"
which is one of 54 such errors. I include a header called "chartgroup.h" containing:
#include each of the following:
bchartdir.h
framework.h
Financechart.h
<windows.h>
<string>
<vector>
chartdir.h
and using ChartViewer.h in the dialog that is trying to call my plotting function.
Compiles but not linking due to something missing. I built a small test program that works but now trying to incorporate into my 30k lines of C++ code application.
I'm stumped.
any help would be appreciated.
thanks,
jeff |
Re: having trouble getting rid of pre compiled header |
Posted by Peter Kwan on Nov-20-2024 12:01 |
|
Hi jef,
This is a linker error. Have you verified that the project is configured to link with the correct "chartdir70.lib"? (There are 2 "chartdir70.lib/chartdir70.dll", one for 32-bit applications and one for 64-bit applications.) The _CChart_getResourceLoader is in "chartdir70.lib". I have attached a screenshot for your reference.
Best Regards
Peter Kwan
|
|