Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Pellaeon on December 07, 2005, 08:46:12 pm

Title: DLL with __stdcall and def-File
Post by: Pellaeon on December 07, 2005, 08:46:12 pm
Hello,

I have a DLL and my export functions use the __stdcall-Convention. I want to export my function names.
Because it's stdcall it doesn't work to do it with extern "C". So I think I need a def-file

How can I use the def-File? I created a new file with the ending "def" and I wrote the function names into the export-section.
But the compiler does not use my def-file. What must I do?

I use the Visual C++ Toolkit 2003 for compiling
Title: Re: DLL with __stdcall and def-File
Post by: Frank3000 on December 08, 2005, 02:53:03 pm
Hi,
put
/DEF:"path_where_the_file_is/mydeffile.def"
at
Project->Build options->Linker->Other linker options

Frank
Title: Re: DLL with __stdcall and def-File
Post by: Pellaeon on December 08, 2005, 06:01:51 pm
THX, works fine  :D