Author

Topic: Unable to compile bitcoin v0.1.5 ALPHA (Read 1277 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
July 16, 2016, 10:00:04 AM
#14
Hi Knight,

C:\MinGW\msys\1.0\home\Gebruiker\bc
C:\MinGW\msys\1.0\home\Gebruiker\bc\wxWidgets-2.8.12

Thanks.
Remove the version number so it is just [tt\]wxWidgets[/tt]. Do the same for the three other libraries; \OpenSSL for openssl-1.0.2d, \DB for db-4.8.30.NC, and \Boost for boost_1_35_0

If that doesn't work, try doing make install in wxWidgets, openssl, and db.
newbie
Activity: 6
Merit: 0
July 16, 2016, 09:50:41 AM
#13
Hi Knight,

C:\MinGW\msys\1.0\home\Gebruiker\bc
C:\MinGW\msys\1.0\home\Gebruiker\bc\wxWidgets-2.8.12

Thanks.
legendary
Activity: 4228
Merit: 1313
July 15, 2016, 06:18:13 PM
#12
Hi Knight,

I modified modified the last two lines:
rm -f obj\*
rm -f headers.h.gch

and recompiled. Error is still there

Could you paste the full path for wxWidgets and the directory you are working in?
staff
Activity: 3458
Merit: 6793
Just writing some code
July 15, 2016, 03:59:56 PM
#11
Hi Knight,

I modified modified the last two lines:
rm -f obj\*
rm -f headers.h.gch

and recompiled. Error is still there
Not quite sure what is causing the error. Are you sure that the paths to all of the necessary directories don't have spaces in them? If they do, you should either move the folders or rename them to not have spaces.
newbie
Activity: 6
Merit: 0
July 15, 2016, 03:04:56 PM
#10
Hi Knight,

I modified modified the last two lines:
rm -f obj\*
rm -f headers.h.gch

and recompiled. Error is still there
staff
Activity: 3458
Merit: 6793
Just writing some code
July 15, 2016, 02:11:33 PM
#9
Hi knightdk,

I get the following error with 'make clean' command.

del /Q obj\*
make: del: Command not found
make: [clean] Error 127 (ignored)
del /Q headers.h.gch
make: del: Command not found
make: [clean] Error 127 (ignored)

Go into the makefile and change the two lines at the bottom from
Code:
-del /Q obj\*
-del /Q headers.h.gch
to
Code:
rm -f obj\*
rm -f headers.h.gch
newbie
Activity: 6
Merit: 0
July 15, 2016, 02:01:21 PM
#8
Hi knightdk,

I get the following error from 'make clean' command.

del /Q obj\*
make: del: Command not found
make: [clean] Error 127 (ignored)
del /Q headers.h.gch
make: del: Command not found
make: [clean] Error 127 (ignored)
staff
Activity: 3458
Merit: 6793
Just writing some code
July 14, 2016, 09:25:53 PM
#7
Did you do make clean before building it again? Are you sure that wxwidgets is installed in the right place?
newbie
Activity: 6
Merit: 0
July 14, 2016, 08:48:18 PM
#6
Hi guys that worked, but I am now getting a new error.

kill /f bitcoin.exe
kill: illegal pid: C:/MinGW/msys/1.0/f
kill: illegal pid: bitcoin.exe
make: [bitcoin.exe] Error 1 (ignored)
g++ -mthreads -O0 -w -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -I"../boost_1_35_0" -I"../db-4.8.30.NC/build_unix" -I"../openssl-1.0.2d/include" -I"../wxWidgets-2.8.12/lib/wx/include/msw-ansi-release-2.8" -I"../wxWidgets-2.8.12/include" -mwindows -Wl,--subsystem,windows -o bitcoin.exe -L"../db-4.8.30.NC/build_unix" -L"../openssl-1.0.2d" -L"../wxWidgets-2.8.12/lib" obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o obj/ui.o obj/uibase.o obj/sha.o obj/irc.o obj/ui_res.o -l db_cxx -l crypto -l wx_mswd_richtext-2.8 -l wx_mswd_html-2.8 -l wx_mswd_core-2.8 -l wx_based-2.8 -l wxtiffd-2.8 -l wxjpegd-2.8 -l wxpngd-2.8 -l wxzlibd-2.8 -l wxregexd-2.8 -l wxexpatd-2.8 -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32
obj/ui.o:ui.cpp:(.rdata$_ZTV17CEditReviewDialog[__ZTV17CEditReviewDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV17CEditReviewDialog[__ZTV17CEditReviewDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV16CViewOrderDialog[__ZTV16CViewOrderDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV16CViewOrderDialog[__ZTV16CViewOrderDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV18CViewProductDialog[__ZTV18CViewProductDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV18CViewProductDialog[__ZTV18CViewProductDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV18CEditProductDialog[__ZTV18CEditProductDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV18CEditProductDialog[__ZTV18CEditProductDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV15CProductsDialog[__ZTV15CProductsDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV15CProductsDialog[__ZTV15CProductsDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV18CAddressBookDialog[__ZTV18CAddressBookDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV18CAddressBookDialog[__ZTV18CAddressBookDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV18CYourAddressDialog[__ZTV18CYourAddressDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV18CYourAddressDialog[__ZTV18CYourAddressDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV14CSendingDialog[__ZTV14CSendingDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV14CSendingDialog[__ZTV14CSendingDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV11CSendDialog[__ZTV11CSendDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV11CSendDialog[__ZTV11CSendDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV12CAboutDialog[__ZTV12CAboutDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV12CAboutDialog[__ZTV12CAboutDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV14COptionsDialog[__ZTV14COptionsDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV14COptionsDialog[__ZTV14COptionsDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV16CTxDetailsDialog[__ZTV16CTxDetailsDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV16CTxDetailsDialog[__ZTV16CTxDetailsDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV10CMainFrame[__ZTV10CMainFrame]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV10CMainFrame[__ZTV10CMainFrame]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV22CGetTextFromUserDialog[__ZTV22CGetTextFromUserDialog]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV22CGetTextFromUserDialog[__ZTV22CGetTextFromUserDialog]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV16wxStaticTextBase[__ZTV16wxStaticTextBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/ui.o:ui.cpp:(.rdata$_ZTV16wxStaticTextBase[__ZTV16wxStaticTextBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV26CGetTextFromUserDialogBase[__ZTV26CGetTextFromUserDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV26CGetTextFromUserDialogBase[__ZTV26CGetTextFromUserDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV16CPokerDialogBase[__ZTV16CPokerDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV16CPokerDialogBase[__ZTV16CPokerDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV21CPokerLobbyDialogBase[__ZTV21CPokerLobbyDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV21CPokerLobbyDialogBase[__ZTV21CPokerLobbyDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV21CEditReviewDialogBase[__ZTV21CEditReviewDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV21CEditReviewDialogBase[__ZTV21CEditReviewDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV20CViewOrderDialogBase[__ZTV20CViewOrderDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV20CViewOrderDialogBase[__ZTV20CViewOrderDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV22CViewProductDialogBase[__ZTV22CViewProductDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV22CViewProductDialogBase[__ZTV22CViewProductDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV22CEditProductDialogBase[__ZTV22CEditProductDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV22CEditProductDialogBase[__ZTV22CEditProductDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV19CProductsDialogBase[__ZTV19CProductsDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV19CProductsDialogBase[__ZTV19CProductsDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV22CAddressBookDialogBase[__ZTV22CAddressBookDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV22CAddressBookDialogBase[__ZTV22CAddressBookDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV22CYourAddressDialogBase[__ZTV22CYourAddressDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV22CYourAddressDialogBase[__ZTV22CYourAddressDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV18CSendingDialogBase[__ZTV18CSendingDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV18CSendingDialogBase[__ZTV18CSendingDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV15CSendDialogBase[__ZTV15CSendDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV15CSendDialogBase[__ZTV15CSendDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV16CAboutDialogBase[__ZTV16CAboutDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV16CAboutDialogBase[__ZTV16CAboutDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV18COptionsDialogBase[__ZTV18COptionsDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV18COptionsDialogBase[__ZTV18COptionsDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV20CTxDetailsDialogBase[__ZTV20CTxDetailsDialogBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV20CTxDetailsDialogBase[__ZTV20CTxDetailsDialogBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV14CMainFrameBase[__ZTV14CMainFrameBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV14CMainFrameBase[__ZTV14CMainFrameBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV14wxCheckBoxBase[__ZTV14wxCheckBoxBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV14wxCheckBoxBase[__ZTV14wxCheckBoxBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV12wxButtonBase[__ZTV12wxButtonBase]+0x114): undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
obj/uibase.o:uibase.cpp:(.rdata$_ZTV12wxButtonBase[__ZTV12wxButtonBase]+0x118): undefined reference to `wxWindow::UnregisterHotKey(int)'
collect2.exe: error: ld returned 1 exit status
make: *** [bitcoin.exe] Error 1



Thanks in advance.
legendary
Activity: 4228
Merit: 1313
July 14, 2016, 08:08:25 PM
#5
Can you create the obj directory in src/? (The make file should do so, but...)

eg something like mkdir obj or from the Windows desktop.

(Just adding some detail to Knights' answer)
staff
Activity: 3458
Merit: 6793
Just writing some code
July 14, 2016, 08:05:47 PM
#4
Fatal error: can't create obj/util.o: No such file or directory
make: *** [obj/util.o] Error 1
Make a folder in your source code named "obj" (without quotes).
newbie
Activity: 6
Merit: 0
July 14, 2016, 08:01:46 PM
#3
Hi knightdk,

Thank you for replying. I do apologize about the spamming, I didn't realize I was spamming.

The reason I why I trying to compile original source code is because I purchased an ebook, A Dissection of Bitcoin by Paul Huang. The original source is required work through the ebook. I would like to study the original code.

The full error:
g++ -c -mthreads -O0 -w -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -I"../boost_1_35_0" -I"../db-4.8.30.NC/build_unix" -I"../openssl-1.0.2d/include" -I"../wxWidgets-2.8.12/lib/wx/include/msw-ansi-release-2.8" -I"../wxWidgets-2.8.12/include" -o obj/util.o util.cpp
Assembler messages:
Fatal error: can't create obj/util.o: No such file or directory
make: *** [obj/util.o] Error 1

Compiler:
g++ (GCC) 4.9.3



staff
Activity: 3458
Merit: 6793
Just writing some code
July 14, 2016, 07:11:54 PM
#2
First of all, please stop spamming the forum with duplicate posts. It isn't going to help you, the duplicates are just going to be deleted.

Hi all,

I trying to compile bitcoin v0.1.5 ALPHA on Windows Vista machine,
Why are you even trying to compile 0.1.5? It is super old and it won't even work with the current network.

but I getting the following errors:

g++ -c -mthreads -O0 -w -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -I"../boost_1_35_0" -I"../db-4.8.30.NC/build_unix" -I"../openssl-1.0.2d/include" -I"../wxWidgets-2.8.12/lib/wx/include/msw-ansi-release-2.8" -I"../wxWidgets-2.8.12/include" -o obj/util.o util.cpp
That isn't an error. That is a g++ command to compile some stuff. Which compiler are you using? What is the full output of the make command?
newbie
Activity: 6
Merit: 0
July 14, 2016, 07:02:39 PM
#1
Hi all,

I trying to compile bitcoin v0.1.5 ALPHA on Windows Vista machine, but I getting the following errors:

g++ -c -mthreads -O0 -w -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -I"../boost_1_35_0" -I"../db-4.8.30.NC/build_unix" -I"../openssl-1.0.2d/include" -I"../wxWidgets-2.8.12/lib/wx/include/msw-ansi-release-2.8" -I"../wxWidgets-2.8.12/include" -o obj/util.o util.cpp

I had no problems compiling the following:

wxWidgets-2.8.12
openssl-1.0.2d
db-4.8.30.NC
boost_1_35_0 (unzip)

Using the following commands:

1: cd bc/wxWidgets-2.8.12
2: ./configure --with-msw --enable-debug --enable-debug_gdb --disable-shared
3: make

1: cd bc/openssl-1.0.2d
2: ./config
3: make

1: cd bc/db-4.8.30.NC/build_unix
2: ../dist/configure --enable-mingw --enable-cxx
3: make

Bitcoin's makefile:

# Copyright (c) 2009 Satoshi Nakamoto
# Distributed under the MIT/X11 software license, see the accompanying
# file license.txt or http://www.opensource.org/licenses/mit-license.php.


ifneq "$(BUILD)" "debug"
ifneq "$(BUILD)" "release"
BUILD=debug
endif
endif
ifeq "$(BUILD)" "debug"
D=d
# note: gcc 3.x profile doesn't work
#DEBUGFLAGS=-O0 -g -pg -D__WXDEBUG__
DEBUGFLAGS=-g -D__WXDEBUG__
endif



INCLUDEPATHS=-I"../boost_1_35_0" \
             -I"../db-4.8.30.NC/build_unix" \
             -I"../openssl-1.0.2d/include" \
             -I"../wxWidgets-2.8.12/lib/wx/include/msw-ansi-release-2.8" \
             -I"../wxWidgets-2.8.12/include"
LIBPATHS=-L"../db-4.8.30.NC/build_unix" \
             -L"../openssl-1.0.2d" \
             -L"../wxWidgets-2.8.12/lib"
LIBS= \
     -l db_cxx \
     -l crypto \
     -l wx_msw$(D)_richtext-2.8 \
     -l wx_msw$(D)_html-2.8 \
     -l wx_msw$(D)_core-2.8 \
     -l wx_base$(D)-2.8 \
     -l wxtiff$(D)-2.8 \
     -l wxjpeg$(D)-2.8 \
     -l wxpng$(D)-2.8 \
     -l wxzlib$(D)-2.8 \
     -l wxregex$(D)-2.8 \
     -l wxexpat$(D)-2.8 \
     -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 \
     -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32
WXDEFS=-DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH
CFLAGS=-mthreads -O0 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)
HEADERS=headers.h util.h main.h serialize.h uint256.h key.h bignum.h script.h db.h base58.h



all: bitcoin.exe


headers.h.gch: headers.h $(HEADERS) net.h irc.h market.h uibase.h ui.h
   g++ -c $(CFLAGS) -o $@ $<

obj/util.o: util.cpp          $(HEADERS)
   g++ -c $(CFLAGS) -o $@ $<

obj/script.o: script.cpp       $(HEADERS)
   g++ -c $(CFLAGS) -o $@ $<

obj/db.o: db.cpp          $(HEADERS) market.h
   g++ -c $(CFLAGS) -o $@ $<

obj/net.o: net.cpp          $(HEADERS) net.h
   g++ -c $(CFLAGS) -o $@ $<

obj/main.o: main.cpp          $(HEADERS) net.h market.h sha.h
   g++ -c $(CFLAGS) -o $@ $<

obj/market.o: market.cpp       $(HEADERS) market.h
   g++ -c $(CFLAGS) -o $@ $<

obj/ui.o: ui.cpp          $(HEADERS) net.h uibase.h ui.h market.h
   g++ -c $(CFLAGS) -o $@ $<

obj/uibase.o: uibase.cpp       uibase.h
   g++ -c $(CFLAGS) -o $@ $<

obj/sha.o: sha.cpp          sha.h
   g++ -c $(CFLAGS) -O3 -o $@ $<

obj/irc.o:  irc.cpp          $(HEADERS)
   g++ -c $(CFLAGS) -o $@ $<

obj/ui_res.o: ui.rc  rc/bitcoin.ico rc/check.ico rc/send16.bmp rc/send16mask.bmp rc/send16masknoshadow.bmp rc/send20.bmp rc/send20mask.bmp rc/addressbook16.bmp rc/addressbook16mask.bmp rc/addressbook20.bmp rc/addressbook20mask.bmp
   windres $(WXDEFS) $(INCLUDEPATHS) -o $@ -i $<



OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o    \
   obj/ui.o obj/uibase.o obj/sha.o obj/irc.o obj/ui_res.o

bitcoin.exe: headers.h.gch $(OBJS)
   -kill /f bitcoin.exe
   g++ $(CFLAGS) -mwindows -Wl,--subsystem,windows -o $@ $(LIBPATHS) $(OBJS) $(LIBS)

clean:
   -del /Q obj\*
   -del /Q headers.h.gch

I would be very happy if someone can help me.

Thank you,
Anthony Benjamin
Jump to: