Author Topic: DevC to C:B .dll Migration Help!  (Read 2824 times)

Offline Freak

  • Single posting newcomer
  • *
  • Posts: 4
DevC to C:B .dll Migration Help!
« on: February 29, 2008, 08:21:32 am »
Hi, Peoples...
I do a little bit of C programming usually within DevC/C++, I'm trying to setup Code Blocks 8.02 and make a template for .dll files.

Somewhere previously in DevC/C++, I had to make a change in my compiler settings or project settings area "-DBUILDING_DLL=1
I added an "-D_MSWIN" and this fixed the error i had.

Does anyone know how i would accomplish this using CodeBlocks, I'm recieving same error in CB, but am not sure where this would be changed in CodeBlocks settings, and without i cannot compile.

Any help would be appreciated.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: DevC to C:B .dll Migration Help!
« Reply #1 on: February 29, 2008, 03:09:47 pm »
You can add symbols that you want defined under your project options ("Compiler Flags" --> "#defines").
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."