Re: Linking a LIB file
- From: "Anthony Pellerin" <apellerin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Sep 2006 13:54:56 +0200
It could be simpler if you could post the full result of the compilation
(including your error message).
Did you check that your function is not defined as static in the lib? There
is no prob of C/C++?
HTH
--
--
--
----------------------------------------------------------------
Anthony Pellerin (eMVP)
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
"Rams" <Rams@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message de news:
CB67102F-AB9A-45DA-8242-5BFF36BB1FC5@xxxxxxxxxxxxxxxx
Hi Anthony,
Thanks for the quick response. The library file's source entry is
as
below:
TARGETNAME=my_lib
RELEASETYPE=PLATFORM
TARGETTYPE=LIBRARY
The dll source file contains:
TARGETNAME=my_dll
TARGETTYPE=DYNLINK
RELEASETYPE=PLATFORM
SYNCHRONIZE_DRAIN=1
DLLENTRY=DllEntry
SOURCELIBS= \
$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib \
$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ufnmdd.lib \
$(_TARGETPLATROOT)\lib\$(_CPUDEPPATH)\cspddk.lib \
$(_TARGETPLATROOT)\lib\$(_CPUDEPPATH)\my_lib.lib
I even have a .def file for this dll file
Can you find any problem in the entries or any area that I need to look
into?
Thanks & Regards,
-Rams
"Anthony Pellerin" wrote:
When compiling a lib, it does not try to resolve external symbols, while
it
does it for a DLL.
So make sure the function is really implmented in the library, not as
static
and be carefull with C and C++ files.
Then in you SOURCES file of your DLL, add your library to the list of
linked
libraries.
HTH
--
--
--
----------------------------------------------------------------
Anthony Pellerin (eMVP)
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
.
- Follow-Ups:
- Re: Linking a LIB file
- From: Rams
- Re: Linking a LIB file
- References:
- Re: Linking a LIB file
- From: Anthony Pellerin
- Re: Linking a LIB file
- Prev by Date: Re: problem about accessing flash partition
- Next by Date: Re: Embeddeding the Win CE
- Previous by thread: Re: Linking a LIB file
- Next by thread: Re: Linking a LIB file
- Index(es):
Relevant Pages
|
Loading