Wolvix Wiki : SourceCompile

HomePage :: Wolvix.org :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [845]

The oldest known version of this page was edited on 2007-12-08 06:29:32 by AnjeshT
The following packages are needed to compile the source.
- gcc
- g++
- binutils

To install these packages, simply slapt-get as a root

Create a simple hello.c program to test gcc.
#include <stdio.h>
int main() {
  printf("hello world");
  return 0;
}

save the program as hello.c

#gcc -o hello hello.c

If everything goes fine, hello executable will be created.
#./hello 


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0528 seconds