News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to build a static lib ?

Started by leeya, April 12, 2007, 04:46:26 PM

Previous topic - Next topic

leeya

Thanks for your detail explaination!
I was newbie to C++ and Win32, so I got a open-source win32 library --RSWL to study from start and improve my skill on C++ and Win32.
I had 'googled' this problem, but still miss the parameter--"/ENTRY:WinMainCRTStartup".

I has a long road to C++ and Win32, thanks for your help sincerely again.

leeya

BTW, why i could not download GCC 4.1.2 for MinGW from the link "http://files.filefront.com/gcc_412_i386_pc_mingw327z/;7025990;/fileinfo.html/11/1"

I got the information from your signature.

TDragon

Quote from: leeya on April 24, 2007, 03:54:47 PM
BTW, why i could not download GCC 4.1.2 for MinGW from the link "http://files.filefront.com/gcc_412_i386_pc_mingw327z/;7025990;/fileinfo.html/11/1"
I don't know; the download works fine for me.

To quote a reply I made to another person recently who also had problems:
Quote
However, I believe you can also download the binary package at http://farfetch.intrepid.cx/gcc-4.1.2-i386-pc-mingw32.7z, and the source package at http://farfetch.intrepid.cx/gcc-4.1.2-i386-pc-mingw-src.7z. (Warning: That server may not return the proper mime headers; if you get a page of gibberish, try right-clicking the link and selecting Save As.)
Hope that helps.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

leeya

 :D
You are right!
I should make right-clicking the link and Save as.

leeya

I changed my compiler to gcc 4.1.2, then rebuild my project.
However I get error message:

-------------- Build: Debug in UnitTest ---------------
mingw32-g++.exe -Wall -W -g  -ID:\CodeWorld\RSWL2GCC -ID:\CodeWorld\RSWL2GCC\UnitTest\ -IC:\MinGW\include  -c D:\CodeWorld\RSWL2GCC\UnitTest\precompiled.cpp -o obj\Debug\precompiled.o
mingw32-g++.exe -Wall -W -g  -ID:\CodeWorld\RSWL2GCC -ID:\CodeWorld\RSWL2GCC\UnitTest\ -IC:\MinGW\include  -c D:\CodeWorld\RSWL2GCC\UnitTest\Main.cpp -o obj\Debug\Main.o
c:/mingw/bin/../lib/gcc/mingw32/4.1.2/../../../../include/c++/4.1.2/cwctype:89: error: '::iswblank' has not been declared

D:\CodeWorld\RSWL2GCC\UnitTest\Main.cpp:4: warning: unused parameter 'hInst'
D:\CodeWorld\RSWL2GCC\UnitTest\Main.cpp:4: warning: unused parameter 'cmdParam'
D:\CodeWorld\RSWL2GCC\UnitTest\Main.cpp:4: warning: unused parameter 'cmdShow'
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 3 warnings


Why ?

TDragon

Sorry I took so long getting back to you on this. The long and the short of it is, I don't know a certain answer. I suspect that it has something to do with incomplete wide-char support in GCC/mingw32. To try for a workaround of some sort, I would need more context information.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Deschamps

#21
Quote from: leeya(..) cwctype:89: error: '::iswblank' has not been declared (..)

As TDragon has said, it seems that MinGW doesn't support wide-char types for now. I've read somewhere that you could try undefining _GLIBCXX_HAVE_ISWBLANK in your [$MINGW]/include/c++/3.4.2/mingw32/bits/c++config.h, unless you need it for some reason.
Those who were seen dancing were thought to be insane by those who could not hear the music