change to gcc from lcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I wrote a program in lcc in windows and now I have to write it in gcc in unix. In lcc the program works. It uses the following libraries.

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>

In gcc I run the program as follows 

gcc -lm program.c

but I get

segmentation fault (core dumped)

Can you please advise me on this?

Many Thanks
Anna

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux