Author Topic: How to build a static lib ?  (Read 12899 times)

Offline leeya

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: How to build a static lib ?
« Reply #15 on: April 24, 2007, 03:35:47 pm »
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.

Offline leeya

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: How to build a static lib ?
« Reply #16 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 got the information from your signature.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 936
    • Twilight Dragon Media
Re: How to build a static lib ?
« Reply #17 on: April 24, 2007, 04:13:07 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.
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)

Offline leeya

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: How to build a static lib ?
« Reply #18 on: April 24, 2007, 04:17:19 pm »
 :D
You are right!
I should make right-clicking the link and Save as.

Offline leeya

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: How to build a static lib ?
« Reply #19 on: May 09, 2007, 03:48:45 pm »
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 ?

Offline TDragon

  • Lives here!
  • ****
  • Posts: 936
    • Twilight Dragon Media
Re: How to build a static lib ?
« Reply #20 on: May 11, 2007, 09:15:52 pm »
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.
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)

Offline Deschamps

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: How to build a static lib ?
« Reply #21 on: May 13, 2007, 12:09:32 am »
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.
« Last Edit: May 13, 2007, 12:12:37 am by Deschamps »
Misquotations are the only quotations that are never misquoted