User forums > Using Code::Blocks

how can i use the def in codeblocks?

(1/1)

shen_li_li:
i'll use def in dll,how can i config?

thomas:
By ticking the checkbox in the project's "Properties" dialog, under "build targets". That will create a DEF in the same folder as the DLL, which the compiler will use.

shen_li_li:
but ,this is create def,not use !

shen_li_li:
dll sample:

   i create a dll, will output the function "test"

   if i not use def,CodeBlocks output test@8,but i will output only test

i will use this def :
   //===================================
   LIBRARY "test"
   DESCRIPTION 'test Windows Dynamic Link Library'

   EXPORTS
   test       =   test@8       @1 
   //===================================

how can i do?

shen_li_li:
-Wl,--kill-at  --def=DLT645.def


 :D

Navigation

[0] Message Index

Go to full version