Sign in to follow this  
Misery

how to create (MinGW & Code Blocks g++) dll?

Recommended Posts

Hi,

I am trying to create a simple dll containing class.
And I am unable to do it. I am following tutorials and I get three possible results:
- linking errors,
-program works but doesn't see dll contents,
- i get WinMain@16 or aggregate error from g++.

Is there any working tutorial on how to make DLL in MinGW, MinGW with Code Blocks etc?

source code: [url="http://www.mingw.org/wiki/sampleDLL"]http://www.mingw.org/wiki/sampleDLL[/url] did work, however I still don't know if this build release or debug builds, etc

Why cannot this be done in the Borland C++ manner?

Thanks in advance,
Regards Edited by Misery

Share this post


Link to post
Share on other sites
[quote name='Misery' timestamp='1310191895' post='4833004']
source code: [url="http://www.mingw.org/wiki/sampleDLL"]http://www.mingw.org/wiki/sampleDLL[/url] did work, however I still don't know if this build release or debug builds, etc
[/quote]
It is up to you to decide what "release or debug builds" actually are by adding additional compiler flags, for example.

[quote]
Why cannot this be done in the Borland C++ manner?
[/quote]
There's no requirement in the C or C++ standards for any implementation to behave like Borland does.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this