You Are Here:

Community: Developer Discussion Boards

#1 Old 奇怪的错误 - 2003-04-21, 05:16

Join Date: Apr 2003
Posts: 11
hellonokia1
Offline
Registered User
为什么我在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'
Reply With Quote

#2 Old 2003-04-21, 08:24

Join Date: Mar 2003
Posts: 3,175
Location: Beijing
Send a message via MSN to liuxg
liuxg's Avatar
liuxg
Offline
Forum Nokia Expert
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia