Skip to content

Commit

Permalink
initial commit with updated Makefile and removing native string worki…
Browse files Browse the repository at this point in the history
…ng on ubuntu
  • Loading branch information
laeeq80 committed Oct 4, 2017
1 parent 9c14cc7 commit 0b8ea88
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
10 changes: 4 additions & 6 deletions build/linux/debug/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
BASE=/home/xouyang1/boost
BOOST_VERSION=1_41
BOOST_INCLUDE = $(BASE)/include
BOOST_INCLUDE=/usr/lib/x86_64-linux-gnu/
C_PLATFORM=-static -pthread
GPP=g++
C_OPTIONS= -g
BOOST_LIB_VERSION=
GPP=/usr/bin/g++
C_OPTIONS= -O3 -g

include ../../makefile_common
# DO NOT DELETE
10 changes: 4 additions & 6 deletions build/linux/release/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
BASE=/home/xouyang1/boost
BOOST_VERSION=1_41
BOOST_INCLUDE = $(BASE)/include
BOOST_INCLUDE=/usr/lib/x86_64-linux-gnu/
C_PLATFORM=-static -pthread
GPP=g++
C_OPTIONS= -O3 -DNDEBUG
BOOST_LIB_VERSION=
GPP=/usr/bin/g++
C_OPTIONS= -O3 -g

include ../../makefile_common
# DO NOT DELETE
3 changes: 2 additions & 1 deletion build/makefile_common
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ CC = ${GPP} ${C_PLATFORM} -ansi -Wno-long-long ${C_OPTIONS} $(INCFLAGS)

LDFLAGS = -L$(BASE)/lib -L.

LIBS = -l boost_system${BOOST_LIB_VERSION} -l boost_thread${BOOST_LIB_VERSION} -l boost_serialization${BOOST_LIB_VERSION} -l boost_filesystem${BOOST_LIB_VERSION} -l boost_program_options${BOOST_LIB_VERSION}#-l pthread
LIBS = -l boost_system${BOOST_LIB_VERSION} -l boost_thread${BOOST_LIB_VERSION} -l boost_program_options${BOOST_LIB_VERSION} -lboost_filesystem${BOOST_LIB_VERSION} #-l pthread


.SUFFIXES: .cpp .o

Expand Down
6 changes: 3 additions & 3 deletions src/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ using boost::filesystem::path;
using namespace boost::posix_time;

path make_path(const std::string& str) {
return path(str, boost::filesystem::native);
return path(str);
}

void doing(int verbosity, const std::string& str, tee& log) {
Expand Down Expand Up @@ -684,7 +684,7 @@ Thank you!\n";
cpu, seed, verbosity, max_modes_sz, energy_range, log);
}
catch(file_error& e) {
std::cerr << "\n\nError: could not open \"" << e.name.native_file_string() << "\" for " << (e.in ? "reading" : "writing") << ".\n";
std::cerr << "\n\nError: could not open \"" << e.name.string() << "\" for " << (e.in ? "reading" : "writing") << ".\n";
return 1;
}
catch(boost::filesystem::filesystem_error& e) {
Expand All @@ -696,7 +696,7 @@ Thank you!\n";
return 1;
}
catch(parse_error& e) {
std::cerr << "\n\nParse error on line " << e.line << " in file \"" << e.file.native_file_string() << "\": " << e.reason << '\n';
std::cerr << "\n\nParse error on line " << e.line << " in file \"" << e.file.string() << "\": " << e.reason << '\n';
return 1;
}
catch(std::bad_alloc&) {
Expand Down
6 changes: 3 additions & 3 deletions src/split/split.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
using boost::filesystem::path;

path make_path(const std::string& str) {
return path(str, boost::filesystem::native);
return path(str);
}

std::string default_prefix(const std::string& input_name, const std::string& add) {
Expand Down Expand Up @@ -208,7 +208,7 @@ Thank you!\n";
write_multimodel_pdbqt(tmp, ligand_prefix, flex_prefix);
}
catch(file_error& e) {
std::cerr << "\n\nError: could not open \"" << e.name.native_file_string() << "\" for " << (e.in ? "reading" : "writing") << ".\n";
std::cerr << "\n\nError: could not open \"" << e.name.string() << "\" for " << (e.in ? "reading" : "writing") << ".\n";
return 1;
}
catch(boost::filesystem::filesystem_error& e) {
Expand All @@ -220,7 +220,7 @@ Thank you!\n";
return 1;
}
catch(parse_error& e) {
std::cerr << "\n\nParse error on line " << e.line << " in file \"" << e.file.native_file_string() << "\": " << e.reason << '\n';
std::cerr << "\n\nParse error on line " << e.line << " in file \"" << e.file.string() << "\": " << e.reason << '\n';
return 1;
}
catch(std::bad_alloc&) {
Expand Down

0 comments on commit 0b8ea88

Please sign in to comment.