Bitcoin Forum
December 17, 2017, 04:50:55 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Compilation error Windows  (Read 1781 times)
barwizi
Legendary
*
Offline Offline

Activity: 882



View Profile
September 04, 2013, 02:25:53 PM
 #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?
1513529455
Hero Member
*
Offline Offline

Posts: 1513529455

View Profile Personal Message (Offline)

Ignore
1513529455
Reply with quote  #2

1513529455
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
smolen
Hero Member
*****
Offline Offline

Activity: 525


View Profile
September 04, 2013, 02:43:01 PM
 #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

Of course I gave you bad advice. Good one is way out of your price range.
barwizi
Legendary
*
Offline Offline

Activity: 882



View Profile
September 04, 2013, 02:47:30 PM
 #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?
CryptoBullion
Sr. Member
****
Offline Offline

Activity: 266


View Profile
September 04, 2013, 03:10:18 PM
 #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...

Fold Proteins, earn cryptos! CureCoin. https://bitcointalk.org/index.php?topic=268556.0
CryptoPCS.com Prepaid phone refills, post paid phone payments, and bill payments https://bitcointalk.org/index.php?topic=285148.0
barwizi
Legendary
*
Offline Offline

Activity: 882



View Profile
September 04, 2013, 03:14:52 PM
 #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
smolen
Hero Member
*****
Offline Offline

Activity: 525


View Profile
September 04, 2013, 03:20:11 PM
 #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.

Of course I gave you bad advice. Good one is way out of your price range.
Hazard
Legendary
*
Offline Offline

Activity: 994


Internet Celebrity


View Profile WWW
September 04, 2013, 03:28:03 PM
 #7

"Employable, but it'll cost you."

jdebunt
Legendary
*
Offline Offline

Activity: 1414

Freelance Bitcoin / Blockchain / FinTech Writer


View Profile WWW
September 04, 2013, 03:35:09 PM
 #8

g++ –version , what result does that give you? Smiley (in command prompt)
smolen
Hero Member
*****
Offline Offline

Activity: 525


View Profile
September 04, 2013, 03:41:03 PM
 #9

(ranting) from such large scale project as Bitcoin I'd expect XCode and Visual Studio project files...

Of course I gave you bad advice. Good one is way out of your price range.
shakezula
Sr. Member
****
Offline Offline

Activity: 308



View Profile
September 04, 2013, 03:44:48 PM
 #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.
barwizi
Legendary
*
Offline Offline

Activity: 882



View Profile
September 05, 2013, 01:29:26 PM
 #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
jdebunt
Legendary
*
Offline Offline

Activity: 1414

Freelance Bitcoin / Blockchain / FinTech Writer


View Profile WWW
September 05, 2013, 01:37:54 PM
 #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
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!