Author Topic: how can i use the def in codeblocks?  (Read 6159 times)

Offline shen_li_li

  • Single posting newcomer
  • *
  • Posts: 5
how can i use the def in codeblocks?
« on: August 13, 2008, 11:02:20 am »
i'll use def in dll,how can i config?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: how can i use the def in codeblocks?
« Reply #1 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline shen_li_li

  • Single posting newcomer
  • *
  • Posts: 5
Re: how can i use the def in codeblocks?
« Reply #2 on: August 14, 2008, 01:24:00 am »
but ,this is create def,not use !

Offline shen_li_li

  • Single posting newcomer
  • *
  • Posts: 5
Re: how can i use the def in codeblocks?
« Reply #3 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?

Offline shen_li_li

  • Single posting newcomer
  • *
  • Posts: 5
Re: how can i use the def in codeblocks?
« Reply #4 on: August 15, 2008, 03:08:04 am »
-Wl,--kill-at  --def=DLT645.def


 :D