01-05-2009
52,
0
Join Date: Dec 2008
Last Activity: 25 February 2010, 3:53 AM EST
Posts: 52
Thanks Given: 0
Thanked 0 Times in 0 Posts
Porting C++ 32-bit code on 64-bit Solaris
Hi,
I am trying to convert 32-bit code to 64-bit.
I have defined function
int main()
{
int* l;
size_t len1;
fun(len1);
return 0;
}
void fun(int* ptr)
{
cout<<"\nsizeof(ptr)"<<sizeof(ptr);
}
However while compiling getting error as :
Error: Formal argument ptr of type unsigned long* in call to fun(unsigned long*) is being passed unsigned long.