Re: Linking Application with the Library file
- From: Chandra <forqueries@xxxxxxxxx>
- Date: Wed, 23 Jan 2008 01:28:07 -0800 (PST)
Thanks one and all for your responses.
Paul,
I agree with you. The Memory map functions which i am using are
not the application functions. I am using these functions to configure
the ISR for Timer. But i am not sure in which library these functions
are included. I have never worked with LOADLIBRARY and GETPROCADDRESS.
Do you have any snippets that can give me some information about how
to use these functions ( LoadLibrary and GetProcAddress). Here are
names of the functions which i am using in my application.
1) // Initialize GPT registers
OUTREG32();
2) EnterCriticalSection(&g_hGptLock);
3) BSPGptSetClockGatingMode(TRUE);
// Assert software reset for the timer
4) INSREG32BF(&g_pGPT->CR, GPT_CR_SWR, GPT_CR_SWR_RESET);
// Wait for the software reset to complete
5) while (EXTREG32(&g_pGPT->CR, CSP_BITFMASK(GPT_CR_SWR),
GPT_CR_SWR_LSH));
// Get BSP-specific clock source
6) clkSrc = BSPGptGetClockSource();
7) KernelIoControl(IOCTL_HAL_RELEASE_SYSINTR, &g_gptIntr,
sizeof(DWORD), NULL, 0, NULL);
8) LeaveCriticalSection(&g_hGptLock);
9) CeSetThreadPriority(g_hTimerThread, THREAD_PRIORITY);
If you tell me in which library these are included i will try to get
them included in my build.
Thanks in advance,
Chandra.
On Jan 22, 8:18 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
Those functions are not application functions; they are present in the
device for use by drivers. Therefore, they are typically not in any library
file that would be shipped with an SDK. If you are the device OEM, you can
regenerate your SDK with the appropriate library in it, or you could change
your program code to use LoadLibrary and GetProcAddress to access the
function. The function is in ceddk.dll.
Paul T.
"Chandra" <forquer...@xxxxxxxxx> wrote in message
news:64b8906e-59df-4622-b73f-ea190ca8bfba@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Anthony,
Thnaks for your quick response.
I am using WINCE 5.0 and Evc++ 4.0 for application development. I am
able to compile my application but, unable to link the application
with LIB file. I have included it in the Project>Settings>Link Tab.
The errors which i am getting are like these
IsrClass.obj : error LNK2019: unresolved external symbol MmMapIoSpace
referenced in function "public: void __cdecl
Isr::InitGptInterrupt(void)" (?InitGptInterrupt@Isr@@QAAXXZ). I am
able to find the library file in the specified path but unable to link
it with the application. Does the dll should be placed in some default
directory of WINCE folders.
Hope i am clear to u.
with regards,
Chandra.
On Jan 22, 5:25 pm, "Anthony Pellerin"
<apellerin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Have a look at the SOURCES file of your application, you'll have sections
to
do so. You can also use the Visual Studio IDE to do so.
The DLL will go in the TARGET folder of your BSP and also in the
flatreleasedir.
But to be more accurate, you should gice us more on your environment :
which
version of the tools you're using (CE5, CE6, Visual Studio, eVC++, .......)
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
----------------------------------------------------------------
"Chandra" <forquer...@xxxxxxxxx> a écrit dans le message de news:
44e2a5e2-5c92-4478-8877-4506b1a66...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
How can we link a library(.LIB files) to a application ? Is there any
default folder for the DLL. Any suggestion will be a great help to me.
with regards,
Chandra.
.
- Follow-Ups:
- Re: Linking Application with the Library file
- From: Paul G. Tobey [eMVP]
- Re: Linking Application with the Library file
- References:
- Linking Application with the Library file
- From: Chandra
- Re: Linking Application with the Library file
- From: Anthony Pellerin
- Re: Linking Application with the Library file
- From: Chandra
- Re: Linking Application with the Library file
- From: Paul G. Tobey [eMVP]
- Linking Application with the Library file
- Prev by Date: How to generate eboot.bin
- Next by Date: Missing Header file macwin32.h
- Previous by thread: Re: Linking Application with the Library file
- Next by thread: Re: Linking Application with the Library file
- Index(es):
Relevant Pages
|