Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 09:10, 11 December 2007.

Uses of DEF File

From Forum Nokia Wiki

Each DLL project with FREEZE enabled is associated with a def file that defines where the abld freeze writes to. The build then uses this def file in the following situations:


Contents

Linking the DLL

When the DLL is built, the project’s frozen def file is consulted. The linker will ensure that all functions specified in the def file will remain at the same specified ordinal position ensuring backward compatibility with the import library produced after the last freeze. New functions in the DLL will receive new, higher-numbered ordinals (which will be added to the def on the next freeze).


Generating the import library

With interface freezing enabled, the import library is directly generated using the DLL interface defined in the project’s def file. While interface freezing is disabled, the import library is always generated using the interface from the just-generated DLL. This is why the first build of a DLL will fail to generate an import library if an abld freeze command was not done – no def file yet exists.


Associating a def file with your project

The name of the def file associated with your project defaults to <your_projectname>U.DEF and is located in your project’s BARM (for ARM build targets) or BWINS (for emulator build targets) directory. U stands for Unicode build in your BARM directory. You can specify a new name and location for this file by using the DEFNAME statement in the DLL’s mmp file. Also, nostrictdef can be added to the mmp file to cause the U not to be added to the def file name.


Important

There is an additional def file that is generated on each DLL build, and this should not be confused with the def file discussed above. This file is an intermediate file, located in the project’s epoc32/build directory, and always reflects the current interface of the DLL. When interface freezing is disabled (EXPORTUNFROZEN in your mmp) the import library is generated from this intermediate def file.

Related Discussions
Thread Thread Starter Forum Replies Last Post
Callback after audio file stopped playing gojkoa Python 6 2005-11-18 09:11
FEP troubles on phone (6260) gijsbert General Symbian C++ 1 2005-02-27 11:14
Main screen Faisal Rehman Python 3 2008-08-14 11:50
Location Log Application znakharenko Python 9 2006-02-06 20:01
Having trouble with the Canvas PyNewbie08 Python 1 2008-08-21 23:21
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX