you may add the followning flags to linker flags
/def:"yourfilename.def"
in vc/vs,m$ do this job for you automatically ,it will insert this flag when invoke linker,but you need you do this manual in code::blocks.
Hi, thnaks for the tip, but did not work with me,
I choose from "Project"-> Build Options -> Linker Settings tab -> Other linker options box, and add
/def:"yourfilename.def"
I get file not found error, I added an absolute path, "c:\yourfilename.def", and I get the error
mingw32-g++.exe: /def:c:\yourfilename.def: Invalid argument
I have the following in the def file:
LIBRARY MT_TestDll
EXPORTS
MyMsg
then I tried keep the def file inside my project main path, and added the absolute path of my project to Linker Search Directories in build options, and use the form: /def:"yourfilename.def" in liker options, the build was completed successfully but no ".DLL" file is generated, only a ".a" file.
Would you please tell me what I did wrong?
Regards,