Author

Topic: Compilation error Windows (Read 1900 times)

legendary
Activity: 1596
Merit: 1010
September 05, 2013, 08:37:54 AM
#12
I re-installed everything, re did everything but now i get.

cc1plus.exe: error: unrecognized command line option "-fdiagnostics-show-option"
Makefile.Debug:720: recipe for target 'build/bitcoin.o' failed
mingw32-make[1]: *** [build/bitcoin.o] Error 1
mingw32-make[1]: Leaving directory 'C:/Serrazcoin'
Makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2

perhaps a stupid question/suggestion, but have you tried without -fdiagnostics-show-option? Smiley
legendary
Activity: 882
Merit: 1000
September 05, 2013, 08:29:26 AM
#11
I re-installed everything, re did everything but now i get.

cc1plus.exe: error: unrecognized command line option "-fdiagnostics-show-option"
Makefile.Debug:720: recipe for target 'build/bitcoin.o' failed
mingw32-make[1]: *** [build/bitcoin.o] Error 1
mingw32-make[1]: Leaving directory 'C:/Serrazcoin'
Makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
sr. member
Activity: 308
Merit: 250
September 04, 2013, 10:44:48 AM
#10
Double check your -qt.pro file and make sure the "windows libs =" and "XXX_BUILD_PATH" statement sections are set up correctly for Windows.

Another thing to consider, if you're using a newer (last couple weeks/month) build of MinGW, you may also need to re-install the WHOLE thing including the MSYS bits (they were checked in the older builds, but not in recent builds) and not having MSYS can certainly cause this.
hero member
Activity: 524
Merit: 500
September 04, 2013, 10:41:03 AM
#9
(ranting) from such large scale project as Bitcoin I'd expect XCode and Visual Studio project files...
legendary
Activity: 1596
Merit: 1010
September 04, 2013, 10:35:09 AM
#8
g++ –version , what result does that give you? Smiley (in command prompt)
legendary
Activity: 980
Merit: 1000
September 04, 2013, 10:28:03 AM
#7
"Employable, but it'll cost you."
hero member
Activity: 524
Merit: 500
September 04, 2013, 10:20:11 AM
#6
'g++' is not recognized as an internal or external command,
Mingw is not installed, or PATH is not set, or CC not set to compiler exe name. Or something else Smiley
how do i fix? Path i already set under environment variables
Mingw is installed , how do i set cc?
Try to locate g++.exe (or may be it's named mingw-g++.exe or so), then run it from it's directory (should be 'bin'), then from directory with bitcoin sources. That's just wild guess, I don't have mingw installed now.
legendary
Activity: 882
Merit: 1000
September 04, 2013, 10:14:52 AM
#5
im guessing your making realcoin... which has

build/bitcoin-qt_res.o: src\qt\res\bitcoin-qt.rc
   windres -i src\qt\res\bitcoin-qt.rc -o build\bitcoin-qt_res.o --include-dir=./src/qt/res $(DEFINES)

but no build dir in the src dir
https://github.com/realcoin/realcoin/tree/master/src

from src dir

mkdir build

just a guess...

nah the folder is there
sr. member
Activity: 266
Merit: 250
September 04, 2013, 10:10:18 AM
#4
im guessing your making realcoin... which has

build/bitcoin-qt_res.o: src\qt\res\bitcoin-qt.rc
   windres -i src\qt\res\bitcoin-qt.rc -o build\bitcoin-qt_res.o --include-dir=./src/qt/res $(DEFINES)

but no build dir in the src dir
https://github.com/realcoin/realcoin/tree/master/src

from src dir

mkdir build

just a guess...
legendary
Activity: 882
Merit: 1000
September 04, 2013, 09:47:30 AM
#3
'g++' is not recognized as an internal or external command,
Mingw is not installed, or PATH is not set, or CC not set to compiler exe name. Or something else Smiley
how do i fix? Path i already set under environment variables
Mingw is installed , how do i set cc?
hero member
Activity: 524
Merit: 500
September 04, 2013, 09:43:01 AM
#2
'g++' is not recognized as an internal or external command,
Mingw is not installed, or PATH is not set, or CC not set to compiler exe name. Or something else Smiley
legendary
Activity: 882
Merit: 1000
September 04, 2013, 09:25:53 AM
#1
i keep getting

'g++' is not recognized as an internal or external command,
operable program or batch file.
Makefile.Release:720: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1


anyone know how to deal with this?
Jump to: