相关讨论
初次用vc++6.0,编译通过了,可是link的时候出现了这个问题
------------------Configuration: CppTest - Win32 Debug--------------------
Linking...
CppTest.obj : error lnk2001: unresolved external symbol "public: virtual __thiscall CppDyer::~CppDyer(void)" (??1CppDyer@@UAE@XZ)
CppTest.obj : error lnk2001: unresolved external symbol "public: void __thiscall CppDyer::processFile(class std::basic_string
比如我的代码如下:
在test.h
#pragma once
#include ;
#include ;
using namespace std;
class T
{
public:
T(void);
~T(void);
public:
static int a;
void ins(int x);
};在test.cpp中
#include "StdAfx.h"
#include ".\t.h"
T::T(void)
{
}
T::~T(void)
{
}
void T::ins(int x)
{
T::a = x;
}
这样就会出现static error lnk2001: 无法解析的外部符号 "public: static int T::x" (?x@T...
by
bailu
-
C/C++
-
2005-08-08 22:22:13 阅读(570) 回复(6)
我的机子先安装vc然后装得vc.net,是否俩者有冲突?
而且vc不能卸载,总是提示File to unregister .srg files.??
:cry: 求救:c++程序连接时,总出现unresolved external symbol....的错误,怎么解决?
by
txxdc
-
C/C++
-
2004-03-10 16:53:30 阅读(603) 回复(2)
本帖最后由 FightForWin 于 2010-05-10 16:08 编辑
自已弄好了...
程序绝对没问题。拿vc6下编译,10次成功3次,7次vc6失去响应,郁闷
是少打补丁了吗?
请教各位牛人,不知道大家有没有什么好办法解决在
linux下面写驱动时出现的模块中多出未知变量的方法。
本人在学习的过程中,写了一个驱动,结果老是出现两个
未知变量,去找却没发现什么异常。
然后一行行地删代码,却是在莫名奇妙的地方。
....
征求一下大家的意见,
vc++ .net 与 vc6有什么较大的区别?
vc6还有没有发展的空间,会不会被vc++.net取代!
请各位畅所欲言
#include
using namespace std;
#include
#include
#include
#include
#include
#include
#include
int main()
{
string str("abcd,kkil,good,dome");
string::reverse_iterator rcomma = find(str.rbegin(),str.rend(),',');
cout<
by
uusex
-
C/C++
-
2009-03-26 18:47:09 阅读(1021) 回复(3)