wiki:wade/gcc
close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_repos.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.

Version 4 (modified by wade, 17 years ago) (diff)

--

Packages and libraries

Install C/C++ compiler, packages and libraries.

  sudo apt-get install build-essential

Error

off64_t 無法宣告

Reference:http://gcc.gnu.org/ml/gcc-bugs/2006-11/msg00651.html
Solution:請加上

-Wall -D_LARGEFILE64_SOURCE 

例如:

gcc -D_LARGEFILE64_SOURCE -o test test.c