|
-
July 24th, 2009, 02:27 AM
#1
Including files from another project
I'm rather new to Visual Studio, and I have two projects in one solution, Foo and FooTest. In FooTest I've put my unit test classes (using QtTestLib), which will be testing the code in Foo.
Obviously, this means the unit tests in FooTest need to include header files from Foo. For FooTest, I've set Foo as a project dependency (context menu -> Project dependencies). I've also added Foo as a reference (context menu -> References).
However, I can't figure out how to actually include the header files from Foo in the FooTest unit test classes. I assume there is some prefix, like #include "Foo/SomeFooClass.h", but I haven't been able to figure out what it is and always end up with a "unresolved external symbol" during linking.
Can anyone give me a push in the right direction? Thanks in advance!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|