why the def file doesn't function?

From: Steven (hlsun_at_winbond.com.tw)
Date: 11/08/04


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/


Relevant Pages

  • RE: 2003 Certificate Authority - Custom Policy module
    ... Changed the makefile file as follows: ... I built the dll from .Net sample, but now i have a different issue. ... the 2003 Server Certificate Authority does ...
    (microsoft.public.platformsdk.security)
  • Re: mkmf, linking against a specific DLL on windows
    ... > a .def from a .dll. ... Copyright Microsoft Corporation. ... It's possible to tweak win32/mkexports.rb to accept DLL files ... + case filetype ...
    (comp.lang.ruby)
  • GCC Cygwin C++ DLL linking problem
    ... I have a Windows LIB/DLL that I need to link my GCC program with. ... the .def file. ... Note that a dump of the DLL does not have ... error for each function in the DLL, but I am able to compile and link as C ...
    (comp.lang.cpp)
  • Re: Dll Build
    ... I would use SOURCES to build such a DLL. ... > I am trying to build a class installer dll and I want to use a .def file to ... > the command line utility included with the SDK or the VC++ build enviroment? ... > about how to use a .def file in the VC++ IDE, but was unable to locate the ...
    (microsoft.public.development.device.drivers)
  • Re: Linker Problem
    ... This problem is further compounded if your DLL exports classes - ... you should use a ".def" file that lets you control ... The only reason you would need to relink is if you have made ...
    (microsoft.public.vc.mfc)