why the def file doesn't function?
From: Steven (hlsun_at_winbond.com.tw)
Date: 11/08/04
- Next message: Steven: "Re: why the def file doesn't function?"
- Previous message: Suhan: "Re: Exar multi port serial, Com16550 driver interrupt problem"
- Next in thread: Steven: "Re: why the def file doesn't function?"
- Reply: Steven: "Re: why the def file doesn't function?"
- Reply: Steve Maillet \(eMVP\): "Re: why the def file doesn't function?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Nov 2004 10:29:22 +0800
Hello all:
I've written a def file like this:
LIBRARY TEST
EXPORTS
DriverEntry
TEST_Init
TEST_Deinit
TEST_Open
TEST_Close
TEST_Write
TEST_Read
TEST_Seek
TEST_PowerUp
TEST_PowerDown
TEST_IOControl
and I want to export some functions of my dll, and then I add the
following state in my makefile file like this:
$(TARGET_DLL):$(LIBS)
$(CC) -EP $(CFLAGS) -I./Resource/0804 -
FI$(WINCE_PUBLIC_LOCATION)/common/oak/inc/deffile.inc -Tctest.def >
$(COM_OAK_LIB_PATH)/test.def
$(LINK) -out:$(OUTPUT_DIR)/$(TARGET_DLL) $(DLL_LINK_FLAGS)
$(LIBS) $(OBJ_FILE)
xcopy $(OUTPUT_DIR)\$(TARGET_DLL)
$(PLATFORM_LOCATION)\WINCE500\CEPC_x86\cesysgen\oak\target\x86\$(OUTPUT_DIR)
/r/y
$(COM_OAK_LIB_PATH)/$(TARGET_LIB): $(OBJ_FILE)
$(LINK) $(LIB_LINK_FLAGS) -
out:$(COM_OAK_LIB_PATH)/$(TARGET_LIB) $**
$(LINK) $(LIB_LINK_FLAGS) -
out:$(PRO_OAK_LIB_PATH)/$(TARGET_LIB) -def:$(COM_OAK_LIB_PATH)/test.
def
Then the make process is well but when I use the dumpbin to view the
dll file, is shows no export functions:
File Type: DLL
Summary
4000 .data
1000 .reloc
1000 .rsrc
25000 .text
Who can tell me what's wrong? Or can tell me any possibility?
BR,
Steven
-- Composed with Newz Crawler 1.7 http://www.newzcrawler.com/
- Next message: Steven: "Re: why the def file doesn't function?"
- Previous message: Suhan: "Re: Exar multi port serial, Com16550 driver interrupt problem"
- Next in thread: Steven: "Re: why the def file doesn't function?"
- Reply: Steven: "Re: why the def file doesn't function?"
- Reply: Steve Maillet \(eMVP\): "Re: why the def file doesn't function?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|