1. check
otool -L xxx-app
/usr/local/lib/libxxx.dylib
2. reset it
install_name_tool -change "/usr/local/lib/libxxx.dylib" "@loader_path/../lib/libxxx.dylib" xxx-app
Tuesday, September 27, 2011
Wednesday, September 7, 2011
#include ; ifstream to string
#include <sstream>
#include <fstream>
using namespace std;
int main()
{
ifstream inStream("data.txt");
string str;
inStream >> str;
return 0;
}
#include <fstream>
using namespace std;
int main()
{
ifstream inStream("data.txt");
string str;
inStream >> str;
return 0;
}
Tuesday, September 6, 2011
Subscribe to:
Posts (Atom)