Lakshmi Narasaiah
04/26/2008 11:13 AM
post7341
|
Hi,
We are running a small program in QNX6.3.2 using Boost library.
Program:
#include <iostream>
#include "boost/filesystem.hpp"
using namespace std;
namespace fs = boost::filesystem;
int main ()
{
if (fs::exists("/abc.xml"))
{
cout << " File exits" << endl;
}
else
{
cout << " File doesnot exists" << endl;
}
return 0;
}
and we created a make file as:
all : test
test: test.o
ntox86-g++-3.3.5 -o test -L/usr/local/lib -lboost_filesystem test.o
test.o : test.cpp
ntox86-g++-3.3.5 -c -g -I/usr/local/include/boost-1_34_1 test.cpp
and I got the executable file test.
when I run using ./test, Its saying <Memory fault> core dump.
But when built with Momentics4.0.1, this runs fine.
Can anybody help us with the makefile.
Regards,
Lakshmi.
|
|
|