由买买提看人间百态

topics

全部话题 - 话题: lnk1120
(共0页)
m*****k
发帖数: 731
1
来自主题: Database版 - help on pro*c
我现在使用的是oracle8i,WINDOWS 2000。想用PRO*C连接ORACLE数据库。PRO*C程序预编
译通过,但是联编出现问题。
在VC中编译出错,如下:
Linking...
proj1Dlg.obj : error LNK2001: unresolved external symbol "void __cdecl
sqlcxt(void * *,unsigned long *,struct sqlexd *,struct sqlcxp const *)"
(?sqlcxt@@YAXPAPAXPAKPAUsqlexd@@PBUsqlcxp@@@Z)
Debug/proj1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

proj1.exe - 2 error(s), 0 warning(s)
不知问题出在那,请指教
b*********n
发帖数: 1258
2
来自主题: Programming版 - 问一个C++函数Parameter的问题
这几句是我刚才写的,修改了一下
char* fileName="abcdefg";
int len=strlen(fileName);
LinearSuffixSort(fileName,len);
还是不行,VC 6下,compile通过(no error),build的时候
=======================
error LNK2001: unresolved external symbol "int * __cdecl LinearSuffixSort(ch
ar * &,int &)" (?LinearSuffixSort@@YAPAHAAPADAAH@Z)
fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
=======================
谢谢

the
h**p
发帖数: 377
3
来自主题: Programming版 - How to link math library in VC2005?
I was trying to link math in VC,
though I included math.h in source file, but it alway gave compiling error:
LNK1120:unresolved externals.
anybody has a clue?
3x!!
p***o
发帖数: 1252
4
来自主题: Programming版 - c++ does not check const for extern variable?
I got a linking error:
>cl 1.cpp 2.cpp /EHsc
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80
x86
Copyright (C) Microsoft Corporation. All rights reserved.
1.cpp
2.cpp
Generating Code...
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:1.exe
1.obj
2.obj
2.obj : error LNK2019: unresolved external symbol "int i" (?i@@3HA) referenc
ed in function _main
1.exe : fatal error LNK1120: 1 unresolved extern... 阅读全帖
c******s
发帖数: 270
5
要被继承的类(DllObject)定义在Project A, 用DLL导出. 而子类(MyClass)定义在
Project B.
在Project A中, 我定义了宏MYDLL_BUILD.
// Config_Project_A.h
#if !defined(MYDLL_BUILD)
# pragma comment(lib, "myDll.lib")
#endif
#if defined(MYDLL_BUILD)
# define MYDLL_API __declspec(dllexport)
#else
# define MYDLL_API __declspec(dllimport)
#endif
// DllObject.h
class MYDLL_API DllObject
{
public:
virtual ~DllObject() {}
protected:
DllObject() { m_count = 3; }
priv... 阅读全帖
h**********c
发帖数: 4120
6
来自主题: Programming版 - Visual C++ 高手帮忙,一个Link Error
Just jumped a similar error of a project of my own:
LINK : debug\qtwagon2012.exe not found or not built by the last incremental
link; performing full link
Creating library debug\qtwagon2012.lib and object debug\qtwagon2012.exp
glwidget.obj : error LNK2019: unresolved external symbol "public: static
class qtLight * __cdecl qtLightSingleton::getInstance(void)" (?getInstance@
qtLightSingleton@@SAPAVqtLight@@XZ) referenced in fu
nction "public: void __thiscall GLWidget::slotLight3dMoveOrders(int,... 阅读全帖
J*****n
发帖数: 4859
7
来自主题: Programming版 - fatal error LNK1120: 1 unresolved externals
如果将cpp里面的类成员函数,放在h文件中(变成inline),则能顺利编译。
这个倒底是怎么回事?
b*******s
发帖数: 5216
8
来自主题: Programming版 - fatal error LNK1120: 1 unresolved externals
template?
J*****n
发帖数: 4859
9
来自主题: Programming版 - fatal error LNK1120: 1 unresolved externals

高手!
犯了低级错误,呵呵。
i******t
发帖数: 22541
10
来自主题: Programming版 - fatal error LNK1120: 1 unresolved externals
template 类 只能在一个文件中吧
(共0页)