简体   繁体   中英

Using Tortoise SVN with C++ in Visual Studio 2008

I have an online repository with some .h and .cpp files that make up part of a project. I'm trying to check these out and use them in a new project, but am getting errors (C4627 and C1010). All the files have been added to the project (with Add>Existing Item...), and the subdirectories that contain these files have been added to the "Additional include directories" of the project.

Would I be better off having the entire project tree in the repository? My reason for not doing so is that my colleague and I are working on different parts of the code and so want to use different main methods to test things as we go, and I didn't see any need to be passing around any compiled code etc. since I assumed that given the .h and .cpp files (with the correct settings), visual studio would be able to compile the project.

What's the best way to make Visual Studio 2008 and TortoiseSVN work well together (without spending any money)?

Would I be better off having the entire project tree in the repository?

Most certainly yes. You should be able to check out and build without much effort. Creating a new project every time you want to build the source and having to configure it is way too much work.

My reason for not doing so is that my colleague and I are working on different parts of the code and so want to use different main methods to test things as we go, and I didn't see any need to be passing around any compiled code etc.

Ok, just put more than one project in the solution. There's no reason you can't have separate executable projects for separate tests.

I assumed that given the .h and .cpp files (with the correct settings), visual studio would be able to compile the project.

If all of the settings are the same, then, yes, it should compile fine, but why bother with the hassle when you don't have to?

What's the best way to make Visual Studio 2008 and TortoiseSVN work well together (without spending any money)?

There are a bunch of programs that integrate SVN into Visual Studio. VisualSVN is one of them.

  • Apologies for the VisualSVN recommendation. We used to use it in an old project and I'm positive it was free then. Maybe they changed their license?

Also AnkhSVN which isn't too bad and it's free. Also, lots of the windows it displays look like TFS (if you're familiar with it)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM