[Dev-C++] =?gb2312?B?SG93IHRvIGJ1aWxkIGEgRExMIHdpdGggZGVmIGZpbGWjvw==?=
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: HongQuan.Zhang <hon...@i-...> - 2006-08-09 09:15:56
|
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
|