Author Topic: failed in compiling wxWindows-2.4.2 stc lib  (Read 6306 times)

Offline patsheu

  • Single posting newcomer
  • *
  • Posts: 4
    • http://
failed in compiling wxWindows-2.4.2 stc lib
« on: June 09, 2005, 05:25:56 pm »
i've followed the instructions in the wiki pages step-by-step.
http://codeblocks.sourceforge.net/wiki/index.php/Compiling_wxWidgets_2.4.2_to_develop_Code::Blocks_%28MSW%29

but i got an error when i'm trying to build stc library.

C:/DOCUME~1/patrick/LOCALS~1/Temp/cccDbaaa.s: Assembler messages:
C:/DOCUME~1/patrick/LOCALS~1/Temp/cccDbaaa.s:307: Error: symbol `_D' is already defined

i've successfully built libwxmsw242.a and libwxxrc.a,
so i think that it wasn't a misunderstanding on how to build.

Is there anyone can help?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
failed in compiling wxWindows-2.4.2 stc lib
« Reply #1 on: June 09, 2005, 05:55:33 pm »
Just a guess:
Maybe the build process was interrupted abnormally (e.g. power failure)? If that's the case, an intermediate build file has been created but with junk contents (has happened to me once some time ago).

Try cleaning and rebuilding STC.

Yiannis.
Be patient!
This bug will be fixed soon...

Offline patsheu

  • Single posting newcomer
  • *
  • Posts: 4
    • http://
failed in compiling wxWindows-2.4.2 stc lib
« Reply #2 on: June 10, 2005, 01:03:54 am »
thanks for the suggestion.
i've uninstalled wxWindows-2.4.2 and reinstalled it again.
but when i try to build stc lib, it still gives me the same failure message.

$ mingw32-make -f makefile.g95 FINAL=1 UNICODE=0 WXUSINGDLL=1
g++ -c  -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -I../../../lib/mswdll -I../../../include -I../../../contrib/include -I../../../src/regex -I../../../src/png -I../../../src/jpeg -I../../../src/zlib -I../../../src/tiff -D__WX__ -DSCI_LEXER -DLINK_LEXERS -I../../../contrib/src/stc/scintilla/include -I../../../contrib/src/stc/scintilla/src -I. -I../../../contrib/include         -DSTRICT -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__  -Wall -O2 -fno-rtti -fno-exceptions -DWXUSINGDLL=1  -o stc.o stc.cpp
C:/DOCUME~1/patrick/LOCALS~1/Temp/cccDbaaa.s: Assembler messages:
C:/DOCUME~1/patrick/LOCALS~1/Temp/cccDbaaa.s:307: Error: symbol `_D' is already defined
c:\MinGW\bin\mingw32-make.exe: *** [stc.o] Error 1

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
failed in compiling wxWindows-2.4.2 stc lib
« Reply #3 on: June 10, 2005, 01:16:44 am »
@patsheu
maybe it's the mingw version, you are using ?

with my versions here, it works perfectly.

>gcc --version
gcc (GCC) 3.4.2 (mingw-special)

>mingw32-make --version
GNU Make 3.80

good luck

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
failed in compiling wxWindows-2.4.2 stc lib
« Reply #4 on: June 10, 2005, 01:42:17 am »
Are you sure you didn't compile using different versions of GCC?

Anyway, you need to do a "make clean" first, and try everything from the start. Sorry....

Offline geijt

  • Single posting newcomer
  • *
  • Posts: 7
failed in compiling wxWindows-2.4.2 stc lib
« Reply #5 on: June 10, 2005, 07:30:00 am »
I've got the same problem whem compiling wxWindows-2.4.2.
I'm using the latest stable release of MinGW on Windows XP Pro SP2.

Offline patsheu

  • Single posting newcomer
  • *
  • Posts: 4
    • http://
failed in compiling wxWindows-2.4.2 stc lib
« Reply #6 on: June 10, 2005, 04:00:42 pm »
i just use the gcc that bundled in MinGW-3.1.0-1.exe, and it is 3.2.3.
i'll try to install new version of gcc and try it again.

thanks.

Offline patsheu

  • Single posting newcomer
  • *
  • Posts: 4
    • http://
failed in compiling wxWindows-2.4.2 stc lib
« Reply #7 on: June 10, 2005, 05:00:25 pm »
i've downloaded gcc-core-3.4.2-20040916-1.tar.gz and gcc-g++-3.4.2-20040916-1.tar.gz from http://www.mingw.org/download.shtml
unzip these two files and copy all files to my mingw directory (C:\MinGW), clean and rebuild wxWindows-2.4.2
and it fixes the problem i mentioned. Yes!

thanks again.

Offline geijt

  • Single posting newcomer
  • *
  • Posts: 7
failed in compiling wxWindows-2.4.2 stc lib
« Reply #8 on: June 10, 2005, 07:53:31 pm »
Thanks, working for me now :-)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
failed in compiling wxWindows-2.4.2 stc lib
« Reply #9 on: June 10, 2005, 08:11:18 pm »
I added this to the Wiki :)