Classification: |
General |
Category: |
Development |
Created: |
10/23/2003 |
Modified: |
10/23/2003 |
Number: |
FAQ-0939 |
Platform: |
Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0, Symbian OS v7.0s |
|
Question: When trying to compile my code, I get link warnings which say "LNK4006: __NULL_IMPORT_DESCRIPTOR already defined". How do
I fix this?
Answer: The message usually arises when trying to create a static library (TARGETTYPE LIB), for example:
target AmsCli.lib targettype LIB UID 0x1000008D 0x01000023 //TD: Allocate real UID
userinclude ..\CommonInc userinclude ..\ClientInc systeminclude \epoc32\include
SOURCEPATH ..\ClientSrc
source amscli.cpp amscliserverstart.cpp
library AMSUTILS.LIB EUSER.LIB
Will give the following linker warning (everything works fine though): amsutils.lib(AMSUTILS.DLL) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in euser.lib(EUSER.DLL); second definition ignored A static library is really just a collection of object files, so you should not specify any LIBRARY or SYSTEMLIBRARY lines
in your MMP file.
|