Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: shen_li_li on August 13, 2008, 11:02:20 am

Title: how can i use the def in codeblocks?
Post by: shen_li_li on August 13, 2008, 11:02:20 am
i'll use def in dll,how can i config?
Title: Re: how can i use the def in codeblocks?
Post by: thomas on August 13, 2008, 11:15:42 am
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.
Title: Re: how can i use the def in codeblocks?
Post by: shen_li_li on August 14, 2008, 01:24:00 am
but ,this is create def,not use !
Title: Re: how can i use the def in codeblocks?
Post by: shen_li_li on August 14, 2008, 01:30:11 am
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?
Title: Re: how can i use the def in codeblocks?
Post by: shen_li_li on August 15, 2008, 03:08:04 am
-Wl,--kill-at  --def=DLT645.def


 :D