|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2011
Location: Europe
Posts: 206
Reputation: 50
|
Erm , hello
I was wonering if it is a tutorial on this forum , about creating a plugin in MinGw. I use MinGw because the compiling time is much much much faster than C++ or C#. But it's a little bit strange , for example I cant find the option for creating a .dll file ... So can anyone give me a tutorial with this? Sorry for my bad english and/or if I posted in the wrong section
|
|
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
DLL is also known as Class Library or Dynamic Link Library which cannot be executed. Maybe creating a blank project then setting the output type to DLL.
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Posts: 1,050
Reputation: 5
|
I'm not sure if I correctly understood your question, but here is goes:
Code:
Example:
For the file helloworld.cpp in the folder C:\docs\hello enter the command
cd c:\docs\hello
Now type the compile command
g++ helloworld.cpp -o helloworld.exe
The -o switch defines the name of the output file, without it the output file would be a.exe.
Source: http://www.mingw.org/wiki/MinGWforFirstTimeUsers |
|
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2011
Location: Europe
Posts: 206
Reputation: 50
|
Never mind , I found the answer:
Code:
Building the DLL To build the DLL use the following commands: g++ -c -DBUILDING_EXAMPLE_DLL example_dll.cpp g++ -shared -o example_dll.dll example_dll.o -Wl,--out-implib,libexample_dll.a The -DBUILDING_EXAMPLE_DLL compiler option causes the DLL's functions to be declared as "dllexport", meaning that they will be "exported" from the DLL and available to client applications. The "-shared" option tells the linker to create a DLL instead of an .exe, and the "--out-implib" linker option causes an import library to be created, which is used later on. Note: The import library created by the "--out-implib" linker option is required iff (==if and only if) the DLL shall be interfaced from some C/C++ compiler other than the MinGW toolchain. The MinGW toolchain is perfectly happy to directly link against the created DLL. More details can be found in the ld.exe info files that are part of the binutils package (which is a part of the toolchain). |
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Aug 2009
Location: Liverpool uk
Posts: 111
Reputation: 9
|
on youtube maby
|
|
|
|
|
|
#6 |
|
Little Clucker
![]() Join Date: Jun 2012
Location: http://www.easydvdmart.com/
Posts: 1
Reputation: 0
|
I'm not sure whether I understand your problem......
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [TUTORIAL]Tutorial basico para los mas nuevos | the_chaoz | Español/Spanish | 25 | 28/02/2012 09:31 PM |
| [Tutorial] Kako napraviti tutorial sa TextDraw-ovima | Gagi_Corleone | Archive | 15 | 30/09/2011 11:56 AM |
| [tutorial] How to change your Peds Texture (My first tutorial) | toXioneer | Screenshots and Videos | 3 | 03/12/2010 10:13 PM |
| [GF-Tutorial] & [NON-GF-Tutorial] : Fahrschule Mit Fragen Erstellen V.2.0 [Erfor | playafaller | Archive | 1 | 26/12/2009 02:24 PM |