[Dev-C++] =?gb2312?B?tPC4tDogW0Rldi1DKytdIEhvdyB0byBidWlsZCBhIERMTCB3aXRoIA==?= =?gb2312?B?ZGVmIGZp
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: HongQuan.Zhang <hon...@i-...> - 2006-08-14 02:51:25
|
Hi, Thomas: In fact,you don't have to add a def file to the project made by Dev-Cpp ,you can refer to the attachment ,which is a email Per = Westermark send out and this perfect mail help me to solve my problem! Hope this can help you! HongQuan -----=D3=CA=BC=FE=D4=AD=BC=FE----- =B7=A2=BC=FE=C8=CB: dev...@li... [mailto:dev...@li...] =B4=FA=B1=ED Thomas = O'Hare =B7=A2=CB=CD=CA=B1=BC=E4: 2006=C4=EA8=D4=C211=C8=D5 21:38 =CA=D5=BC=FE=C8=CB: dev...@li... =B3=AD=CB=CD: Dev...@li... =D6=F7=CC=E2: Re: [Dev-C++] How to build a DLL with def file=A3=BF 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=A3=ACAll: > I create a dll project and I want to export some function such as=20 > void Test(); > I add a def file like def file in MSVC,and of course I add a linker=20 > opiton "-def test.def" > in project options->parameter->linker=20 > In the file Test.def,there are only several code as follow: >=20 > ; test.def : Declares the module parameters for the DLL. >=20 > LIBRARY "test" > DESCRIPTION 'test Windows Dynamic Link Library' >=20 > EXPORTS > ; Explicit exports can go here > Test >=20 >=20 > When I compile the project and get some error: > [Linker error] undefined reference to `Test'=20 >=20 >=20 >=20 >=20 >=20 > ---------------------------------------------------------------------- > -- >=20 > ---------------------------------------------------------------------- > --- Using Tomcat but need to do more? Need to support web services,=20 > 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=20 > Apache Geronimo > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 1216 > 42 >=20 >=20 > ---------------------------------------------------------------------- > -- >=20 > _______________________________________________ > 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 |