lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] soa2xml: tool for converting SOA tables in the XML format


From: Vaclav Slavik
Subject: Re: [lmi] soa2xml: tool for converting SOA tables in the XML format
Date: Tue, 22 May 2012 19:29:15 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

Hi,

On 2012-05-22 17:07, Greg Chicares wrote:
> On 2012-05-17 16:03Z, Vaclav Slavik wrote:
>> 
>> c++ -o soa2xml.exe soa2xml.cpp \ actuarial_table.cpp \ xml_lmi.cpp
>> \ alert{,_cli}.cpp \ -lboost_{filesystem,system}-mt -lxmlwrapp
>> -lncurses
> 
> Is it possible to remove the dependencies on ncurses and boost
> system?

These come from other LMI code -- ncurses is needed for getch() used by
alert_cli.cpp and boost system is a dependency of boost filesystem.
Apparently, that's not the case with MinGW (I can see ncurses referenced
only in configure.ac for the Unix build system) and your version of
Boost. Feel free to remove these, then.

> And boost format seems to be a problem, too:

Would this patch help with that?


diff --git a/soa_helpers.hpp b/soa_helpers.hpp
index 74f241f..e0c61c7 100644
--- a/soa_helpers.hpp
+++ b/soa_helpers.hpp
@@ -41,7 +41,7 @@ std::vector<soa_record_info> list_soa_file_tables(const char 
*filename)
     fs::ifstream index_ifs(index_path, ios_in_binary());
     if(!index_ifs)
         {
-        error(boost::format("File '%1%' is required but could not be found.") 
% index_path);
+        error(boost::format("File '%1%' is required but could not be found.") 
% index_path.string());
         }
 
     // Index records have fixed length:


If not, I'll just remove boost::format uses -- it's nice to have,
but by no means essential.

Regards,
Vaclav



reply via email to

[Prev in Thread] Current Thread [Next in Thread]