[Dev-C++] =?gb2312?B?tPC4tDogSG93IHRvIGJ1aWxkIGEgRExMIHdpdGggZGVmIGZpbGWjvw==?=
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: HongQuan.Zhang <hon...@i-...> - 2006-08-09 09:26:38
|
I am sorry that I haven't finish the post before I send it!
the original message is at below.
And I just want to know how to code the def file,or how to build a dll =
with
specify export function name!
Thanks a lot!
Hongquan=20
-----=D3=CA=BC=FE=D4=AD=BC=FE-----
=B7=A2=BC=FE=C8=CB: HongQuan.Zhang [mailto:hon...@i-...]=20
=B7=A2=CB=CD=CA=B1=BC=E4: 2006=C4=EA8=D4=C29=C8=D5 17:16
=CA=D5=BC=FE=C8=CB: 'Dev...@li...'
=D6=F7=CC=E2: How to build a DLL with def file=A3=BF
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
opiton "-def test.def"
in project options->parameter->linker=20
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'=20
|