FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 11-17-2011, 03:51 AM
Mohsen Pahlevanzadeh
 
Default debian sid and ubuntu

Dear all,

I have debian sid and gcc 4.6.2-4 and libstdc++ 4.6.2-4, and i compile
following program:
/////////////////
#include <iostream>
using namespace std;
struct x{
int x;
int y;
};
int main(){
struct x *p;
cin >> p->x ;
int e;
cin >> e;
return 0;
}
/////////////////////////////////
When i run it under debian sid, i get segmentation fault for cin >>
p->x, but when i compile it under ubuntu, i run it without error.
What's problem under debian? (i like debian....)

--mohsen
 

Thread Tools




All times are GMT. The time now is 06:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org