About: Make-compile current buffer   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

If you use set makeprg=gcc\ -o\ %<\ % in your vimrc, and your actual file is file.c, then :make will compile file.c with the output file. (gcc file.c -o file). If you use GNU make the above change is not required. Instead, simply use the following command to compile the current file (you need to save it first): :make %:r When using other compilers, like Sun cc, you can adapt the tip to suit your compiler.

AttributesValues
rdfs:label
  • Make-compile current buffer
rdfs:comment
  • If you use set makeprg=gcc\ -o\ %<\ % in your vimrc, and your actual file is file.c, then :make will compile file.c with the output file. (gcc file.c -o file). If you use GNU make the above change is not required. Instead, simply use the following command to compile the current file (you need to save it first): :make %:r When using other compilers, like Sun cc, you can adapt the tip to suit your compiler.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 208(xsd:integer)
Category
  • C
  • Compiler
Author
  • elian
Complexity
  • basic
Created
  • 2002(xsd:integer)
ID
  • 210(xsd:integer)
NEXT
  • 212(xsd:integer)
Rating
  • 134(xsd:integer)
abstract
  • If you use set makeprg=gcc\ -o\ %<\ % in your vimrc, and your actual file is file.c, then :make will compile file.c with the output file. (gcc file.c -o file). If you use GNU make the above change is not required. Instead, simply use the following command to compile the current file (you need to save it first): :make %:r When using other compilers, like Sun cc, you can adapt the tip to suit your compiler.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software