Hi,
I have the following program
pointertst.cpp
---------
Code:
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
int main()
{
char *c;
int *ip;
c=(char*)malloc(100);
ip=(int*)c;
free(ip);
cout<<"IN POINTER TEST";
return 0;
}
I have used g++ -o hello.out pointertst.cpp
Now the problem is when I use the following command it gives output as "valgrind: hello.out: command not found"
command is:
valgrind --tool=memcheck --leak-check=yes hello.out
I'm using Linux Mint(Gloria) and valgrind is installed.
Could anyone please help?