Support Board
Date/Time: Sat, 01 Feb 2025 06:47:34 +0000
Post From: including other header files in ACSIL study
[2019-06-22 17:13:46] |
cmb999 - Posts: 211 |
hi, i have a class in a header file that i would like to include in study.cpp file i include like this at the top of study.cpp : #include "sierrachart.h"
#include "line.h" here is line.h : #pragma once
enum LineTypeEnum {General, Extended, Ray}; class Line { public: Line(); Line(LineTypeEnum, float); ~Line(); LineTypeEnum LineType = General; float angle = 0.0f; }; when i compile from sierra, i get : Creating library study.lib and object study.exp system_4.obj : error LNK2019: unresolved external symbol "public: __cdecl Line::Line(enum LineTypeEnum,float)" (??0Line@@QEAA@W4LineTypeEnum@@M@Z) referenced in function scsf_TemplateFunction system_4.obj : error LNK2019: unresolved external symbol "public: __cdecl Line::~Line(void)" (??1Line@@QEAA@XZ) referenced in function "int `public: __cdecl std::pair<int const ,class Line>::pair<int const ,class Line><int &,class Line &,void,0>(int &,class Line &)'::`1'::dtor$0" (?dtor$0@?0???$?0AEAHAEAVLine@@X$0A@@?$pair@$$CBHVLine@@@std@@QEAA@AEAHAEAVLine@@@Z@4HA) C:\SierraChart_Test\Data\system_64.dll : fatal error LNK1120: 2 unresolved externals it compiles fine, but cannot link to anything that was in external header |