Page 1 of 1

Creating .dll, differences to VC++ and more questions

Posted: Fri May 14, 2010 11:32 am
by Hnry
I'm thinking of moving from VC++ to gcc because it's free and open source. VC++ seems to have some differences to the standard C/C++ because it seems to not compile some correct and simple programs. What actually are the biggest differences? Yes, that is mostly about the compilers but I'm looking for most noticeable pros and cons of CodeLite compared to VC++ IDE too.

I encountered my first problem with CL/gcc when trying to create a .dll file. The "Dynamic library" project creates .so and I didn't find a way to change it to .dll. :/

Do the programs created using gcc need anything similar to the Microsoft C++ Redistributable (runtime library or whatever it's called) or something?


I had more questions but I forgot them, I'll add them here later. :roll:

Re: Creating .dll, differences to VC++ and more questions

Posted: Fri May 14, 2010 7:40 pm
by DrOptix
On Windows when you create an DynamicLibrary (using GCC/G++ as compiler) it is actually and DLL file, but with another extension (.SO in this case, it comes from Shared Object).

If you really want to produce "something.DLL" then go to project settings and under "General" tab change Output file from

Code: Select all

$(IntermediateDirectory)/$(ProjectName).so
to

Code: Select all

$(IntermediateDirectory)/$(ProjectName).dll