| Reply | « Previous Thread | Next Thread » |
|
为什么我在compile时没有错误,但在link时綺常遇到link error LNK1120.
这是我的在link错误及源码对照,有人可以帮我吗?谢谢! 源码: CDesCArrayFlat* iMessageList = new (ELeave) CDesCArrayFlat(10); ---------------- link: link.exe @D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nma01776. Creating library \Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\EPOC32EX\HELLOWORLD\HELLOWORLD\WINS\UDEB\HELLOWORLD.lib and object \Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\EPOC32EX\HELLOWORLD\HELLOWORLD\WINS\UDEB\HELLOWORL D.exp HELLOWORLD_APPVIEW.obj : error LNK2001: unresolved external symbol "public: __thiscall CDesC16ArrayFlat::CDesC16ArrayFlat(int)" (??0CDesC16ArrayFlat@@QAE@H@Z) \Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\EPOC32EX\HELLOWORLD\HELLOWORLD\WINS\UDEB\HELLOWORLD.APP : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link.exe' : return code '0x460' |
| hellonokia1 |
| View Public Profile |
| Find all posts by hellonokia1 |
|
Hi,
Please change your .mmp file, and add the following .lib into your project. Location: badesca.h Link against: bafl.lib If you do not link against this lib, you will get the error. Hope this helps. Liuxg Forum Nokia |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |