Re: [Dev-C++] How to build a DLL with def =?GB2312?B?ZmlsZaO/?=
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Thomas O'H. <To...@Re...> - 2006-08-11 13:38:30
|
Hong, et. al. I used the common way as described below. But I swear I get different results as my project continues. I had added the DEF file to the Linker and all was OK. Then at some point I had to remove the DEF from the Linker to compile. Either I overlooked something or something I am clueless about is going on. So, what is the "best" way to use a DEF file to export functions in Dev-C++??? Not only a code sample but also where to list the file. I am sure it is just me but any help will be appreciated. I am burning up way too much time on this. Thanks, ~ Thomas O'Hare ~ President, RedTile, Inc. - DBA: RedTile Software Web, Wireless, Network, Database & Systems Software +1.407.295.9148 ; +49.8651.717950 ; http://www.RedTile.Com/ Operations Manager; Virtual FoxPro User Group To...@VF... ; http://www.VFUG.Org/ HongQuan.Zhang wrote: > Hi,All: > I create a dll project and I want to export some function such as > void Test(); > I add a def file like def file in MSVC,and of course I add a linker > opiton "-def test.def" > in project options->parameter->linker > In the file Test.def,there are only several code as follow: > > ; test.def : Declares the module parameters for the DLL. > > LIBRARY "test" > DESCRIPTION 'test Windows Dynamic Link Library' > > EXPORTS > ; Explicit exports can go here > Test > > > When I compile the project and get some error: > [Linker error] undefined reference to `Test' > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |