Question

Hey there, In class we're using the Scite editor with gcc and its a tad outdated. I was wondering how you would "attach"(For lack of a better term) gcc to scite so that it would compile the code when I hit the compile icon?. Also would this process be the same when using other text editors like notepad++.

-cheers.

Was it helpful?

Solution

this is copied form cpp.properties (Options -> Edit Properties -> Open cpp.properties)

ccopts=-pedantic -Os
cc=g++ $(ccopts) -c $(FileNameExt) -o $(FileName).o
ccc=gcc $(ccopts) -c $(FileNameExt) -o $(FileName).o

make.command=make
command.compile.*.c=$(ccc) -std=c99
command.build.*.c=$(make.command)
command.go.*.c=./$(FileName)
# To make the Go command both compile (if needed) and execute, use this setting:
#command.go.needs.*.c=gcc $(ccopts) -std=c99 $(FileNameExt) -o $(FileName)

command.compile.$(file.patterns.cplusplus)=$(cc)
command.build.$(file.patterns.cplusplus)=$(make.command)
command.go.$(file.patterns.cplusplus)=./$(FileName)
command.go.needs.$(file.patterns.cplusplus)=g++ $(ccopts) $(FileNameExt) -o $(FileName)

command.build.*.h=$(make.command)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top