0

Hi guys i know that in linux you create a c file and use make or gcc or clang to compile it and then run it.
My question is how do you run a c file or c++ file in vs2012 with out creating a solution.
Also how do you creat a solution for ready created scoure codes

2
Contributors
4
Replies
18
Views
4 Years
Discussion Span
Last Post by otengkwaku
0

My question is how do you run a c file or c++ file in vs2012 with out creating a solution.

Run the compiler from the command line. I'm not aware of any out of the box way to do it in the IDE, but you could create your own external tool that runs cl.exe on the selected open file. If it's just one file, I'll just copy/paste the contents into my scratch project.

Also how do you creat a solution for ready created scoure codes

Create the project, then add existing files as opposed to new files. There might be a utility out there that generates a solution from the contents of a folder automatically, but you'd have to search around for something like that. I just do it manually.

0

Ok thanks. I will search around to see if i can get one (utility for adding files to a solution automatical) if not i will try and see if i can make one. what do you thing?

"like a boss" you are indeed a boss, deceptikon by the way why do you use the name deceptikon?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.