ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  error LNK2001
Posted by Chuck Willette on Feb-18-2012 05:47
Peter,
Sorry to be a bother again, but I've developed a beautiful application with 6 charts using
ChartDirector with Visual Studio 2010. It works great in debug mode, but won't compile for
release. At first, the release compile would not find the #include "chartdir.h" file, so I
moved all of the include files from the ChartDirector folder into the project folder of my
application.Shown below are the LNK2001 errors I have been getting after that move.
What do I need to do?




1>Create_Charts.obj : error LNK2001: unresolved external symbol _CXYChart_xAxis
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CXYChart_addLineLayer
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CMark_setLineWidth
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CLayer_addDataSet
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CSurfaceChart_yAxis
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CXYChart_setPlotArea
1>Create_Charts.obj : error LNK2001: unresolved external symbol _XYChart2BaseChart
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CAxis_setTitle
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setPlotRegion
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CBaseChart_dashLineColor
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CXYChart_create
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CDataSet_setDataSymbol
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CLayer_setXData
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CXYChart_yAxis
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CBaseChart_makeChart
1>Create_Charts.obj : error LNK2001: unresolved external symbol _Box2DrawObj
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CBaseChart_getWidth
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CAxis_setLabelStyle
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CAxis_setLinearScale
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setColorAxis
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_SurfaceChart2BaseChart
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CColorAxis_setLevels
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CBaseChart_setRoundedFrame
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CLayer_getDataSet
1>Create_Charts.obj : error LNK2001: unresolved external symbol _TextBox2Box
1>Create_Charts.obj : error LNK2001: unresolved external symbol _Line2DrawObj
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setWallColor
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CBaseChart_addLine
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CBox_setBackground
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setWallVisibility
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CChart_metalColor
1>Create_Charts.obj : error LNK2001: unresolved external symbol _ColorAxis2Axis
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CPlotArea_moveGridBefore
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setSurfaceAxisGrid
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setInterpolation
1>Create_Charts.obj : error LNK2001: unresolved external symbol _LegendBox2TextBox
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CXYChart_getPlotArea
1>Create_Charts.obj : error LNK2001: unresolved external symbol _ContourLayer2Layer
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CBaseChart_destroy
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CXYChart_addLineLayer2
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CLayer_setXData2
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setWallGrid
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CLayer_addCustomDataLabel
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setWallThickness
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CLayer_setLineWidth
1>Create_Charts.obj : error LNK2001: unresolved external symbol _LineLayer2Layer
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CContourLayer_setColorAxis
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CBox_getHeight
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CTextBox_setAlignment
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CSurfaceChart_create
1>Create_Charts.obj : error LNK2001: unresolved external symbol _Mark2TextBox
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CBaseChart_addLegend
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CAxis_setTickDensity
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CAxis_addMark
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setContourColor
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CXYChart_addContourLayer
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CTextBox_setMargin2
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CColorAxis_setColorGradient
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CBaseChart_addTitle
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CBaseChart_addText
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CSurfaceChart_xAxis
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CContourLayer_setContourColor
1>Create_Charts.obj : error LNK2001: unresolved external symbol
_CSurfaceChart_setData
1>Create_Charts.obj : error LNK2001: unresolved external symbol _CXYChart_xAxis2
1>C:\\Users\\Chuck\\Documents\\Visual Studio 2010\\Projects\\FAuvSurf\\Release\\FAuvSurf
4.0.exe : fatal error LNK1120: 64 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:05.60

  Re: error LNK2001
Posted by Chuck Willette on Feb-18-2012 23:47
Nevermind!!

Somehow the path to chartdir50.dll was missing the the release mode. The error went
away as soon as I reentered the path.

Chuck