Will-ALVIDI / cppStartingKit

C, C++ and C++11 combined and improved syntax highlighting support for Sublime Text.
56 stars 8 forks source link

Windows build #14

Open Metsuro opened 9 years ago

Metsuro commented 9 years ago

Not sure really what to say here. Using the build system from the package it does this.

g++: error: .cpp: Invalid argument [Finished in 0.7s with exit code 1] [cmd: ['g++', '-std=c++11', '-Wall', '.cpp', '-I', '../header', '-o', 'E:\Programming\Metsuro\Stack/main']]

Using something like this http://shishtpal.blogspot.com/2015/01/custom-build-system-for-c11-sublime.html should fix the issue while still being set for all the systems in use?

Will-ALVIDI commented 9 years ago

The build system included in this package is an example and must be adapted per project.

In this specific case the build system will use g++ ('g++') with the c++11 syntax definition ('-std=c++11'), warn you for all errors ('-Wall').

Then it will compile all the .cpp files inside your working directory ('.cpp'), include a folder a level above called "header" ('-I','../header') and output it as you specified ('-o', 'E:\Programming\Metsuro\Stack/main').

If your setup is not exactly that one it won't work. I hope it help.

Thank you for your support.