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 |
| All times are GMT. The time now is 11:45 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.