From: <na...@us...> - 2003-03-15 22:06:17
|
Update of /cvsroot/mingw/htdocs In directory sc8-pr-cvs1:/tmp/cvs-serv17817 Modified Files: ChangeLog mingwfaq.shtml Log Message: 2003-03-15 Nathan Fisher <na...@us...> * mingwfaq.shtml: Add supported Languages section. Add Makefile creation section. Add JNI DLL creation section. Index: ChangeLog =================================================================== RCS file: /cvsroot/mingw/htdocs/ChangeLog,v retrieving revision 1.124 retrieving revision 1.125 diff -C2 -d -r1.124 -r1.125 *** ChangeLog 1 Mar 2003 17:55:00 -0000 1.124 --- ChangeLog 15 Mar 2003 22:06:12 -0000 1.125 *************** *** 1,2 **** --- 1,8 ---- + 2003-03-15 Nathan Fisher <na...@us...> + + * mingwfaq.shtml: Add Makefile section. + Add JNI DLL section. + Add Supported Languages section. + 2003-03-01 Nathan Fisher <na...@us...> Index: mingwfaq.shtml =================================================================== RCS file: /cvsroot/mingw/htdocs/mingwfaq.shtml,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** mingwfaq.shtml 7 Feb 2003 20:15:02 -0000 1.54 --- mingwfaq.shtml 15 Mar 2003 22:06:12 -0000 1.55 *************** *** 1,25 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> - <html> - <head> - <meta content= - "HTML Tidy for Linux/x86 (vers 1st February 2003), see www.w3.org" - name="generator"> - <meta http-equiv="content-type" content= - "text/html; charset=us-ascii"> - <meta name="description" content= - "Information about the Mingw Compiler. Includes descriptive information and questions commonly brought up on the mailing list."> - <meta name="keywords" content= - "mingw, mingw32, programming, C++, C, C/C++, libraries, software, development tools, editors, IDEs, GNU"> - <link href="mingw.css" type="text/css" rel="stylesheet" - title="MinGW"> - <title>MinGW FAQ</title> - </head> - <body link="#000099" vlink="#990099" alink="#000099"> - <h1>MinGW FAQ</h1> - <table class="prim" cellspacing="6" border="0"> <tbody> <tr> --- 1,62 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> ! ! ! ! ! <meta content="HTML Tidy for Linux/x86 (vers 1st February 2003), see www.w3.org" name="generator"> ! ! ! ! ! ! ! ! ! <meta http-equiv="content-type" content="text/html; charset=us-ascii"> ! ! ! ! ! ! ! ! ! <meta name="description" content="Information about the Mingw Compiler. Includes descriptive information and questions commonly brought up on the mailing list."> ! ! ! ! ! ! ! ! ! <meta name="keywords" content="mingw, mingw32, programming, C++, C, C/C++, libraries, software, development tools, editors, IDEs, GNU"> ! ! ! ! ! ! ! ! ! <link href="mingw.css" type="text/css" rel="stylesheet" title="MinGW"> ! <title>MinGW FAQ</title> ! ! ! ! </head><body link="#000099" vlink="#990099" alink="#000099"> ! ! <h1>MinGW FAQ</h1> ! ! ! ! ! ! ! <table class="prim" cellspacing="6" border="0"> <tbody> <tr> *************** *** 64,69 **** <li><a href="download.shtml#release">What is the current version?</a> </li> ! <li><a href="#faq-usingolderversions">Can I use older versions?</a> ! </li> <li><a href="#faq-configure">How do I execute configure scripts?</a> </li> --- 101,107 ---- <li><a href="download.shtml#release">What is the current version?</a> </li> ! <li><a href="#faq-usingolderversions">Can I use older versions?</a></li><li><a href="#faq-languages">What Languages Are Supported?</a><br> ! </li> ! <li><a href="#faq-configure">How do I execute configure scripts?</a> </li> *************** *** 75,89 **** </li> <li><a href="#faq-msvcdll"> ! How can an MSVC program call a MinGW DLL, and vice versa?</a> ! </li> <li><a href="#faq-cross">How can I build a cross compiler?</a> </li> <li><a href="#faq-mingw32-gcc.exe"> ! What's the difference between gcc.exe and mingw32-gcc.exe?"</a> ! </li> ! <li><a href="#faq-mingw32-make.exe">Why is make named mingw32-make.exe? ! </a> ! </li> ! <li><a href="#faq-ridconsole">How to remove DOS command windows?</a> </li> <li><a href="#faq-bugreports">How can I report bugs?</a> --- 113,125 ---- </li> <li><a href="#faq-msvcdll"> ! How can an MSVC program call a MinGW DLL, and vice versa?</a></li><li><a href="#faq-jni-dll">How can a JNI DLL be created?</a><br> ! </li> ! <li><a href="#faq-cross">How can I build a cross compiler?</a> </li> <li><a href="#faq-mingw32-gcc.exe"> ! What's the difference between gcc.exe and mingw32-gcc.exe?"</a></li><li><a href="#faq-Makefile">What is a Makefile and how do I create one?</a></li> ! ! <li><a href="#faq-mingw32-make.exe">Why is make named mingw32-make.exe?</a></li><li><a href="#faq-ridconsole">How to remove DOS command windows?</a> </li> <li><a href="#faq-bugreports">How can I report bugs?</a> *************** *** 142,146 **** <p>The POSIX layer used by MSYS is a fork of the 1.3.3 version of ! <a href= "http://sources.redhat.com/cygwin">Cygwin</a> . Cygwin is a full POSIX layer and UNIX-like environment for Win32 providing both server and --- 178,182 ---- <p>The POSIX layer used by MSYS is a fork of the 1.3.3 version of ! <a href="http://sources.redhat.com/cygwin">Cygwin</a> . Cygwin is a full POSIX layer and UNIX-like environment for Win32 providing both server and *************** *** 168,172 **** non-restrictive. For more information see the file ! <a href= "http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mingw/w32api/README.w32api?rev=HEAD&content-type=text/vnd.viewcvs-markup"> README.w32api</a> .</p> --- 204,208 ---- non-restrictive. For more information see the file ! <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mingw/w32api/README.w32api?rev=HEAD&content-type=text/vnd.viewcvs-markup"> README.w32api</a> .</p> *************** *** 253,257 **** is released under</li> ! <li><a href= "http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mingw/w32api/README.w32api?rev=HEAD&content-type=text/vnd.viewcvs-markup"> copyright</a> . The copyright agreement states --- 289,293 ---- is released under</li> ! <li><a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mingw/w32api/README.w32api?rev=HEAD&content-type=text/vnd.viewcvs-markup"> copyright</a> . The copyright agreement states *************** *** 291,295 **** <li>For more information on the copyleft concept, ! <a href= "http://www.gnu.org/copyleft/"> http://www.gnu.org/copyleft/</a> </li> --- 327,331 ---- <li>For more information on the copyleft concept, ! <a href="http://www.gnu.org/copyleft/"> http://www.gnu.org/copyleft/</a> </li> *************** *** 326,330 **** <p><a href="#index">Back to index</a></p> ! <hr> --- 362,382 ---- <p><a href="#index">Back to index</a></p> ! ! <hr> ! ! <h3><a name="faq-languages"></a> ! What Languages Are Supported?</h3> ! ! <p>As of MinGW-2.0.0-3.exe, MinGW carries support for C , C++, ! ObjC, Fortran 77, while ADA is available as a seperate ! binary. Java is not implemented yet, however ! work is being done to hopefully include it with the ! release of gcc-3.3 for MinGW.</p> ! ! ! <p><a href="#index">Back to index</a> ! </p> ! ! <hr> *************** *** 372,377 **** attempt to "merge" the two packages.</p> ! <p><a href="#index">Back to index</a></p> ! <hr> --- 424,431 ---- attempt to "merge" the two packages.</p> ! <p><a href="#index">Back to index</a> ! </p> ! ! <hr> *************** *** 406,410 **** <p><a href="#index">Back to index</a></p> ! <hr> <h3><a name="faq-comsupport"> --- 460,465 ---- <p><a href="#index">Back to index</a></p> ! ! <hr> <h3><a name="faq-comsupport"> *************** *** 479,483 **** (since his web site is no longer available, you may choose to download ! <a href= "http://mywebpage.netscape.com/yongweiwu/reimp_new.zip"> here</a> a version enhanced by Jose Fonseca):</p> --- 534,538 ---- (since his web site is no longer available, you may choose to download ! <a href="http://mywebpage.netscape.com/yongweiwu/reimp_new.zip"> here</a> a version enhanced by Jose Fonseca):</p> *************** *** 517,522 **** </blockquote>Hooray, we got it. ! <p><a href="#index">Back to index</a></p> ! <hr> --- 572,628 ---- </blockquote>Hooray, we got it. ! <p><a href="#index">Back to index</a> ! </p> ! ! <hr> ! ! <h3><a name="faq-jni-dll"></a> ! How can a JNI DLL be created?</h3> ! ! <p>JNI is the Java Native Interface, you will need to download and install ! the Java SDK. Note the installation directory (ie/ c:\j2sdk1.4.1_02 ) ! for use later. If you are using MSYS add a line similiar to the ! following in /etc/fstab and then restart MSYS:</p> ! ! <blockquote><code> ! c:/j2sdk1.4.1_02 /java ! </code></blockquote> ! ! <p>In MSYS the JNI DLL can be generated using the following ! (NOTE: -Wl has an 'L' not a '1'):</p> ! ! <blockquote><code> ! gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at \<br> ! -I/java/include -I/java/include/win32 \<br> ! --shared -o JavaImp.dll someJavaImp.c<br> ! </code></blockquote> ! ! <p>In a standard command console it can be generated as follows (one continuous line): ! </p> ! ! ! <blockquote><code> ! gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at <br> ! -Ic:/j2sdk1.4.1_02/include -Ic:/j2sdk1.4.1_02/include/win32 <br> ! --shared someJavaImp.c -o JavaImp.dll ! </code></blockquote> ! ! <p>Where JavaImp.dll should be named whatever you refer to the library as ! in your .java file. To use the above dll you would refer to it as ! follows in your java classes code: ! </p> ! ! <blockquote><code> ! System.loadLibrary( "JavaImp" ); ! </code></blockquote> ! ! <p>If you encounter problems ensure your CLASS_PATH and PATH are set ! appropriately for your environment. Please refer to ! <a href="http://java.sun.com/docs/books/tutorial/native1.1/index.html">Java Native Interface</a> ! for further details on using a JNI DLL in java code.</p> ! ! <p><a href="#index">Back to index</a></p> ! ! <hr> *************** *** 535,551 **** <p>There is a very old out-of-date ! <a href="http://www.nanotech.wisc.edu/%7Ekhan/software/gnu-win32/mingw-cross-howto.txt" ! target="_nw">mingw-cross-howto.txt</a> written by Mumit Khan and stored on his site you can use. You'll have to update the packages. This needs to be rewritten, any volunteers? If so, please speak up in the ! <a href= "mailto:min...@li...">mingw-users</a> list.</p> <p>A more upto date HOWTO complete with a script to configure it for you can be found at ! <a href="http://www.libsdl.org/extras/win32/cross/README.txt" ! target= "_nw">http://www.libsdl.org/extras/win32/cross/README.txt </a> .</p> --- 641,655 ---- <p>There is a very old out-of-date ! <a href="http://www.nanotech.wisc.edu/%7Ekhan/software/gnu-win32/mingw-cross-howto.txt" target="_nw">mingw-cross-howto.txt</a> written by Mumit Khan and stored on his site you can use. You'll have to update the packages. This needs to be rewritten, any volunteers? If so, please speak up in the ! <a href="mailto:min...@li...">mingw-users</a> list.</p> <p>A more upto date HOWTO complete with a script to configure it for you can be found at ! <a href="http://www.libsdl.org/extras/win32/cross/README.txt" target="_nw">http://www.libsdl.org/extras/win32/cross/README.txt </a> .</p> *************** *** 554,562 **** <a href="mailto:cro...@so...">crossgcc</a> mail list ! <a href= "http://sources.redhat.com/ml/crossgcc/">archives</a> . You'll also find a link to a crossgcc FAQ and another for an ftp download site of some useful scripts on the ! <a href= "http://sources.redhat.com/ml/crossgcc/">archives</a> search page.</p> --- 658,666 ---- <a href="mailto:cro...@so...">crossgcc</a> mail list ! <a href="http://sources.redhat.com/ml/crossgcc/">archives</a> . You'll also find a link to a crossgcc FAQ and another for an ftp download site of some useful scripts on the ! <a href="http://sources.redhat.com/ml/crossgcc/">archives</a> search page.</p> *************** *** 588,592 **** <p><a href="#index">Back to index</a></p> ! <hr> --- 692,765 ---- <p><a href="#index">Back to index</a></p> ! ! <hr> ! <h3><a name="faq-Makefile"></a> ! What is a Makefile and how do I create one?</h3> ! ! <p>A Makefile is a plain textfile that is used to reduce repeatitive ! commands such as compiler invocation. All indentation in a ! Makefile should be done with tabs not spaces. A simple example of ! a Makefile is as follows and is invoked by typing 'make':</p> ! ! <blockquote><code> ! all:<br> ! gcc -Wall -O3 -o hello.exe hello.cpp ! </code></blockquote> ! ! <p>The following is a more complex example that shows the use of variables and other features: ! </p> ! ! <blockquote><code> ! # this is a comment<br> ! SRC=hello.c main.c<br> ! OBJ=$(SRC:.c=.o) # replaces the .c from SRC with .o<br> ! EXE=hello.exe<br> ! <br> ! CC=gcc<br> ! CFLAGS=-Wall -O3<br> ! LDFLAGS=-mwindows<br> ! RM=rm<br> ! <br> ! %.o: %.c ! # combined w/ next line will compile recently changed .c files<br> ! $(CC) $(CFLAGS) -o $@ -c $<<br> ! <br> ! all: $(EXE) # all is dependent on $(EXE) to be complete<br> ! <br> ! $(EXE): $(OBJ) # $(EXE) is dependent on all of the files in $(OBJ) to exist<br> ! $(CC) $(OBJ) $(LDFLAGS)<br> ! <br> ! .PHONY : clean # .PHONY prevents clean from exiting if errors are ! encountered<br> ! clean:<br> ! -$(RM) $(OBJ) core ! </code></blockquote> ! <p>This Makefile can be invoked in any of the following ways:</p> ! ! <blockquote><code> ! # for the above file will compile everything required by the all label<br> ! make<br> ! <br> ! # effectively the same as the previous line<br> ! make all<br> ! <br> ! # 'clean' the project of stale files<br> ! # for this Makefile, remove hello.o, main.o and core<br> ! make clean<br> ! <br> ! # clean and then build all<br> ! make clean all<br> ! <br> ! # build all and then clean<br> ! make all clean ! </code></blockquote> ! ! <p>For further information on Makefiles please refer to the ! <a href="http://www.gnu.org/manual/make/html_chapter/make_toc.html">GNU make tutorial</a>. ! </p> ! ! <p><a href="#index">Back to index</a> ! </p> ! <hr> *************** *** 634,638 **** <!-- End of Main Body --> </td> ! </tr> </tbody> </table> --- 807,815 ---- <!-- End of Main Body --> </td> ! </tr><tr> ! <td style="vertical-align: top;"><br> ! </td> ! </tr> ! </tbody> </table> *************** *** 640,660 **** </tr> </tbody> ! </table><!--#include file="ssi/bottombar.html"--> ! <!--#include file="ssi/footer.html"--> <p> ! <a href="http://validator.w3.org/check/referer"><img border="0" ! src="http://www.w3.org/Icons/valid-html401" ! alt="Valid HTML 4.01!" height="31" width="88"></a> <a href="http://jigsaw.w3.org/css-validator/"> ! <img style="border:0;width:88px;height:31px" ! src="http://jigsaw.w3.org/css-validator/images/vcss" ! alt="Valid CSS!"></a> </p> ! <address> <br> Last revised $Date$ </address> ! </body> ! </html> --- 817,846 ---- </tr> </tbody> ! ! </table> ! <!--#include file="ssi/bottombar.html"--><!--#include file="ssi/footer.html"--> ! ! ! ! <p> ! <a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88"></a> <a href="http://jigsaw.w3.org/css-validator/"> ! <img style="border: 0pt none ; width: 88px; height: 31px;" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a> </p> ! ! ! ! ! ! <address> <br> Last revised $Date$ </address> ! ! ! ! ! </body></html> \ No newline at end of file |