User forums > Help
failed in compiling wxWindows-2.4.2 stc lib
patsheu:
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?
mandrav:
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.
patsheu:
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
tiwag:
@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
rickg22:
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....
Navigation
[0] Message Index
[#] Next page
Go to full version