Code::Blocks Forums
User forums => Help => Topic started by: patsheu 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?
-
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.
-
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
-
@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
-
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....
-
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.
-
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.
-
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.
-
Thanks, working for me now :-)
-
I added this to the Wiki :)