Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

Building 0.4.0rc1 in Ububtu via make -f makefile.unix returns the following errors/warnings:

ui.cpp: In member function 'virtual void CMainFrame::OnIconize(wxIconizeEvent&)':
ui.cpp:488:25 warning: 'bool wxIconizeEvent::Iconized() const' is deprecated (declared at /usr/local/include/wx-2.9/wx/event.h:2150)
ui.cpp:456:43 warning: 'bool wxIconizeEvent::Iconized() const' is deprecated (declared at /usr/local/include/wx-2.9/wx/event.h:2150)
ui.cpp: in function 'void SetStartOnSytstemStartup(bool)':
ui.cpp:1808:39: error: 'class boost::filesystem3::path' has no member named 'native_file_string'
make: *** [obj/ui.o] Error 1

Does anyone know how I could fix this? I'm guessing it's an issue with my libraries...

share|improve this question
add comment

2 Answers 2

up vote 6 down vote accepted

The first two lines are just warnings that can be ignored. But the error is a known issue caused by Bitcoin's use of a deprecated API that was removed in your version of Boost. The fix is to modify src/ui.cpp around line 1809 as follows:

  {
     if (!fAutoStart)
     {
-        unlink(GetAutostartFilePath().native_file_string().c_str());
+        unlink(GetAutostartFilePath().c_str());
     }
     else
     {

(Remove the line marked with a - and replace it with the line marked with a +.)

share|improve this answer
    
Thank you David for your pinpoint accuracy and help. Your time is valued, and your contributions to the community are appreciated! –  Alex Waters Sep 5 '11 at 12:46
add comment

Depending on your version, here are a few resources.

For 10.04 there is a good guide here and an additional resource here.

For 11.04 this question may be a duplicate.

share|improve this answer
    
I am running 11.04, but this is not a duplicate of that question. Thank you for the 10.04 resources though - maybe I will find something in there –  Alex Waters Sep 4 '11 at 18:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.