User forums > Using Code::Blocks

DLL with __stdcall and def-File

(1/1)

Pellaeon:
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

Frank3000:
Hi,
put
/DEF:"path_where_the_file_is/mydeffile.def"
at
Project->Build options->Linker->Other linker options

Frank

Pellaeon:
THX, works fine  :D

Navigation

[0] Message Index

Go to full version