From: Sonya B. <son...@ho...> - 2013-10-08 05:54:50
|
DEar All, I'm receiving the segmentation fault error with the following sode snippet, in Code Blocks configured for Gnu Gcc it throws exception exactly at the "printf(argc)" line, I can't see any malfunctioning thing other than argc. What can be teh error here ? CODE SNIPPET int main( int argc, char **argv ) ..... ..... printf(argc); SlepcInitialize(&argc,&argv,(char*)0,help); myfile= fopen("IN.txt","r"); ERRORS Program received signal SIGSEGV, Segmentation fault. In rand () (C:\Windows\SysWOW64\msvcrt.dll) Debugger finished with status 0 |