主题:[讨论]无法解析的外部符号,求助
正在链接...
InjsIdOdStep1.obj : error LNK2001: 无法解析的外部符号 "public: virtual struct CRuntimeClass * __thiscall CInjsIdOdStep1::GetRuntimeClass(void)const " (?GetRuntimeClass@CInjsIdOdStep1@@UBEPAUCRuntimeClass@@XZ)
InjsIdOdStep1.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall CInjsIdOdStep1::OnInitDialog(void)" (?OnInitDialog@CInjsIdOdStep1@@UAEHXZ)
Release\Rocket.exe : fatal error LNK1120: 2 个无法解析的外部命令
生成日志保存在“file://d:\soft_design\rocket_design\Rocket\Rocket\Release\BuildLog.htm”
Rocket - 3 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
源代码如下(有省略)
#include "stdafx.h"
#include "Rocket.h"
#include "InjsIdOdStep1.h"
#include ".\injsIdOdStep1.h"
#include "math.h"
#include <stdio.h>
extern double g_p0,g_fuel_flux,g_ox_flux;
double g_Jk,……;
……
……
void CInjsIdOdStep1::OnBnClickedIdcodcS1CountAButton()
{
UpdateData(true);
g_Cd=g_Csharp;
g_Kp=g_Bk;//喷嘴压降系数
g_Ao=314.159*g_ox_flux/(14*g_Cd*g_N*sqrt(11.4*g_p0*g_Kp)); g_Af=314.159*g_fuel_flux/(14*g_Cd*g_N*sqrt(0.7*g_p0*g_Kp));
char strout[80];
sprintf_s(strout,"%lf",g_Ao);
m_IdOdS1WhatAo.SetWindowText(strout);
sprintf_s(strout,"%lf",g_Af);
m_IdOdS1WhatAf.SetWindowText(strout);
}[code=c]
请填写代码
[/code][code=c]
请填写代码
[/code]
InjsIdOdStep1.obj : error LNK2001: 无法解析的外部符号 "public: virtual struct CRuntimeClass * __thiscall CInjsIdOdStep1::GetRuntimeClass(void)const " (?GetRuntimeClass@CInjsIdOdStep1@@UBEPAUCRuntimeClass@@XZ)
InjsIdOdStep1.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall CInjsIdOdStep1::OnInitDialog(void)" (?OnInitDialog@CInjsIdOdStep1@@UAEHXZ)
Release\Rocket.exe : fatal error LNK1120: 2 个无法解析的外部命令
生成日志保存在“file://d:\soft_design\rocket_design\Rocket\Rocket\Release\BuildLog.htm”
Rocket - 3 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
源代码如下(有省略)
#include "stdafx.h"
#include "Rocket.h"
#include "InjsIdOdStep1.h"
#include ".\injsIdOdStep1.h"
#include "math.h"
#include <stdio.h>
extern double g_p0,g_fuel_flux,g_ox_flux;
double g_Jk,……;
……
……
void CInjsIdOdStep1::OnBnClickedIdcodcS1CountAButton()
{
UpdateData(true);
g_Cd=g_Csharp;
g_Kp=g_Bk;//喷嘴压降系数
g_Ao=314.159*g_ox_flux/(14*g_Cd*g_N*sqrt(11.4*g_p0*g_Kp)); g_Af=314.159*g_fuel_flux/(14*g_Cd*g_N*sqrt(0.7*g_p0*g_Kp));
char strout[80];
sprintf_s(strout,"%lf",g_Ao);
m_IdOdS1WhatAo.SetWindowText(strout);
sprintf_s(strout,"%lf",g_Af);
m_IdOdS1WhatAf.SetWindowText(strout);
}[code=c]
请填写代码
[/code][code=c]
请填写代码
[/code]